Skip to content

Commit 4afbdf3

Browse files
[rosbag2] Fix typo to properly restore SIGINT hanlder
1 parent e7f7f59 commit 4afbdf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rosbag2_py/src/rosbag2_py/_transport.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class Recorder
203203
std::signal(SIGTERM, old_sigterm_handler);
204204
}
205205
if (old_sigint_handler != SIG_ERR) {
206-
std::signal(SIGTERM, old_sigint_handler);
206+
std::signal(SIGINT, old_sigint_handler);
207207
}
208208
throw;
209209
}
@@ -212,7 +212,7 @@ class Recorder
212212
std::signal(SIGTERM, old_sigterm_handler);
213213
}
214214
if (old_sigint_handler != SIG_ERR) {
215-
std::signal(SIGTERM, old_sigint_handler);
215+
std::signal(SIGINT, old_sigint_handler);
216216
}
217217
}
218218

0 commit comments

Comments
 (0)