s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit b42ebc38db8e44306d6353e0874810936d20fc7f
parent ff8493ef9d33e7c348293587637c70f82bb90aba
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 19 Dec 2014 00:29:16 +0000

 s6-notifywhenup returns 1 when it does not notify

Diffstat:
Msrc/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 @@ -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 ;