aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-10-27 14:02:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-10-27 14:02:44 +0000
commit96f5a3404ac1b2ad0a00f4da1c08e7b95791effc (patch)
treec924a87de7c1bae64133c45a72dabfa3e165a878 /src
parent7338bda5f0377f0bbd9c52574cbfea922679276b (diff)
downloads6-96f5a3404ac1b2ad0a00f4da1c08e7b95791effc.tar.gz
s6-background-watch: don't forget selfpipe_init
Diffstat (limited to 'src')
-rw-r--r--src/supervision/s6-background-watch.c2
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() ;