mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
catch SIGTERM to stop recording
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user