diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-20 22:19:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-20 22:19:49 +0200 |
commit | ce7b47a877a3e47632f27c44c333a96221885202 (patch) | |
tree | 409ab36c7404016d0d3c77e1bcc509b8cc73120d /src | |
parent | acf1624d2d6857d7eaae3ab8ac06f036a921a8ec (diff) |
catch SIGTERM to stop recording
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 675c171..3b8b133 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2989,6 +2989,7 @@ int main(int argc, char **argv) { setlocale(LC_ALL, "C"); // Sigh... stupid C signal(SIGINT, stop_handler); + signal(SIGTERM, stop_handler); signal(SIGUSR1, save_replay_handler); signal(SIGUSR2, toggle_pause_handler); signal(SIGRTMIN, toggle_replay_recording_handler); |