From ce7b47a877a3e47632f27c44c333a96221885202 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 20 Apr 2025 22:19:49 +0200 Subject: catch SIGTERM to stop recording --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.cpp') 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); -- cgit v1.2.3-70-g09d2