summaryrefslogtreecommitdiff
path: root/src/daemontools-extras
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-19 00:29:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-19 00:29:16 +0000
commitb42ebc38db8e44306d6353e0874810936d20fc7f (patch)
treeddaf8c723cd084a90a38d7ea096a9cecfebc3bcc /src/daemontools-extras
parentff8493ef9d33e7c348293587637c70f82bb90aba (diff)
downloads6-b42ebc38db8e44306d6353e0874810936d20fc7f.tar.xz
s6-notifywhenup returns 1 when it does not notify
Diffstat (limited to 'src/daemontools-extras')
-rw-r--r--src/daemontools-extras/s6-notifywhenup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemontools-extras/s6-notifywhenup.c b/src/daemontools-extras/s6-notifywhenup.c
index 583b784..61388df 100644
--- a/src/daemontools-extras/s6-notifywhenup.c
+++ b/src/daemontools-extras/s6-notifywhenup.c
@@ -31,7 +31,7 @@ static int run_child (int fd, char const *fifodir, unsigned int timeout)
if (!r) return 99 ;
r = sanitize_read(fd_read(fd, dummy, 4096)) ;
if (r < 0)
- if (errno == EPIPE) return 0 ;
+ if (errno == EPIPE) return 1 ;
else strerr_diefu1sys(111, "read from parent") ;
else if (r)
if (byte_chr(dummy, r, '\n') < r) break ;