diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-27 14:02:44 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-27 14:02:44 +0000 |
| commit | 96f5a3404ac1b2ad0a00f4da1c08e7b95791effc (patch) | |
| tree | c924a87de7c1bae64133c45a72dabfa3e165a878 | |
| parent | 7338bda5f0377f0bbd9c52574cbfea922679276b (diff) | |
| download | s6-96f5a3404ac1b2ad0a00f4da1c08e7b95791effc.tar.gz | |
s6-background-watch: don't forget selfpipe_init
| -rw-r--r-- | src/supervision/s6-background-watch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/supervision/s6-background-watch.c b/src/supervision/s6-background-watch.c index 8c4053b..1ea37f8 100644 --- a/src/supervision/s6-background-watch.c +++ b/src/supervision/s6-background-watch.c @@ -175,6 +175,8 @@ int main (int argc, char const *const *argv) { sigset_t full ; sigfillset(&full) ; + if (selfpipe_init() == -1) + strerr_diefu1sys(111, "init selfpipe") ; if (!selfpipe_trapset(&full)) strerr_diefu1sys(111, "trap all signals") ; x[0].fd = selfpipe_fd() ; |
