From 173d58a10c40f1fd64034690eab82833d4a4770d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 18 Feb 2020 12:25:29 +0000 Subject: Add SIGPWR and SIGWINCH support to s6-svscan --- src/supervision/s6-svscan.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 #include #include + #include #include #include @@ -18,6 +19,7 @@ #include #include #include + #include #include @@ -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") ; } -- cgit v1.2.3