catch SIGTERM to stop recording

This commit is contained in:
dec05eba
2025-04-20 22:19:49 +02:00
parent acf1624d2d
commit ce7b47a877

View File

@@ -2989,6 +2989,7 @@ int main(int argc, char **argv) {
setlocale(LC_ALL, "C"); // Sigh... stupid C setlocale(LC_ALL, "C"); // Sigh... stupid C
signal(SIGINT, stop_handler); signal(SIGINT, stop_handler);
signal(SIGTERM, stop_handler);
signal(SIGUSR1, save_replay_handler); signal(SIGUSR1, save_replay_handler);
signal(SIGUSR2, toggle_pause_handler); signal(SIGUSR2, toggle_pause_handler);
signal(SIGRTMIN, toggle_replay_recording_handler); signal(SIGRTMIN, toggle_replay_recording_handler);