aboutsummaryrefslogtreecommitdiffstats
path: root/src/signals.c
diff options
context:
space:
mode:
authorWebkadiz <webkadiz@gmail.com>2021-06-23 11:46:51 +0300
committerWebkadiz <webkadiz@gmail.com>2021-06-23 11:46:51 +0300
commit38de5562841ce91ae3bec197ef7643235310957c (patch)
tree48a68fb60e128ff7f1d18861b780d0ec00c7ff90 /src/signals.c
parentREADME: Explain gamma ramps and why integrated features should be preferred (diff)
downloadredshift-ng-38de5562841ce91ae3bec197ef7643235310957c.tar.gz
redshift-ng-38de5562841ce91ae3bec197ef7643235310957c.tar.bz2
redshift-ng-38de5562841ce91ae3bec197ef7643235310957c.tar.xz
Add signal exit handler for SIGQUIT
Diffstat (limited to 'src/signals.c')
-rw-r--r--src/signals.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/signals.c b/src/signals.c
index cee5ece..942324c 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;