Skip to content

Commit

Permalink
[rosbag2] Fix typo to properly restore SIGINT hanlder
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Jun 2, 2024
1 parent e7f7f59 commit 4afbdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rosbag2_py/src/rosbag2_py/_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Recorder
std::signal(SIGTERM, old_sigterm_handler);
}
if (old_sigint_handler != SIG_ERR) {
std::signal(SIGTERM, old_sigint_handler);
std::signal(SIGINT, old_sigint_handler);
}
throw;
}
Expand All @@ -212,7 +212,7 @@ class Recorder
std::signal(SIGTERM, old_sigterm_handler);
}
if (old_sigint_handler != SIG_ERR) {
std::signal(SIGTERM, old_sigint_handler);
std::signal(SIGINT, old_sigint_handler);
}
}

Expand Down

0 comments on commit 4afbdf3

Please sign in to comment.