diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-18 12:25:29 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-18 12:25:29 +0000 |
commit | 173d58a10c40f1fd64034690eab82833d4a4770d (patch) | |
tree | 7200c4d15d9e4ffc74598554100fdb503050939c /src | |
parent | 4ad28c83818e3b7b351ac328e3753d8dab8b2804 (diff) | |
download | s6-173d58a10c40f1fd64034690eab82833d4a4770d.tar.xz |
Add SIGPWR and SIGWINCH support to s6-svscan
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-svscan.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/supervision/s6-svscan.c b/src/supervision/s6-svscan.c index 800fc9f..bf338d5 100644 --- a/src/supervision/s6-svscan.c +++ b/src/supervision/s6-svscan.c @@ -7,6 +7,7 @@ #include <errno.h> #include <fcntl.h> #include <signal.h> + #include <skalibs/allreadwrite.h> #include <skalibs/sgetopt.h> #include <skalibs/types.h> @@ -18,6 +19,7 @@ #include <skalibs/sig.h> #include <skalibs/selfpipe.h> #include <skalibs/environ.h> + #include <s6/config.h> #include <s6/s6-supervise.h> @@ -528,6 +530,12 @@ int main (int argc, char const *const *argv) { sigaddset(&set, SIGUSR1) ; sigaddset(&set, SIGUSR2) ; +#ifdef SIGPWR + sigaddset(&set, SIGPWR) ; +#endif +#ifdef SIGWINCH + sigaddset(&set, SIGWINCH) ; +#endif } if (selfpipe_trapset(&set) < 0) strerr_diefu1sys(111, "trap signals") ; } |