summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ;