From b42ebc38db8e44306d6353e0874810936d20fc7f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 19 Dec 2014 00:29:16 +0000 Subject: s6-notifywhenup returns 1 when it does not notify --- src/daemontools-extras/s6-notifywhenup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3