diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 11:17:21 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 11:17:21 +0100 |
commit | 73fb380a0dfd7e33fe2985ecc9d0c29667c451e8 (patch) | |
tree | 265e8eb89676012eb9ff2a174f927ddecfc21b7f /src/signals.c | |
parent | Unlist redshift/pull/717: merged (diff) | |
parent | Add signal exit handler for SIGQUIT (diff) | |
download | redshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.gz redshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.bz2 redshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.xz |
Merge branch 'master' of https://github.com/webkadiz/redshift
Diffstat (limited to 'src/signals.c')
-rw-r--r-- | src/signals.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/signals.c b/src/signals.c index c18abaf..e2aa219 100644 --- a/src/signals.c +++ b/src/signals.c @@ -84,6 +84,12 @@ signals_install_handlers(void) return -1; } + r = sigaction(SIGQUIT, &sigact, NULL); + if (r < 0) { + perror("sigaction"); + return -1; + } + /* Install signal handler for USR1 signal */ sigact.sa_handler = sigdisable; sigact.sa_mask = sigset; |