aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 11:17:21 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 11:17:21 +0100
commit73fb380a0dfd7e33fe2985ecc9d0c29667c451e8 (patch)
tree265e8eb89676012eb9ff2a174f927ddecfc21b7f
parentUnlist redshift/pull/717: merged (diff)
parentAdd signal exit handler for SIGQUIT (diff)
downloadredshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.gz
redshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.bz2
redshift-ng-73fb380a0dfd7e33fe2985ecc9d0c29667c451e8.tar.xz
Merge branch 'master' of https://github.com/webkadiz/redshift
-rw-r--r--src/signals.c6
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;