From 23edd6b9a4cca74cada39bffa9d71e2428689b67 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 Mar 2018 21:20:09 +0000 Subject: Bugfix: inverted warning condition on s6_dtally_write (non-critical) --- src/supervision/s6-supervise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index 4696004..9d821bd 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -355,7 +355,7 @@ static int uplastup_z (void) tab[m].stamp = status.stamp ; tab[m].sig = WIFSIGNALED(status.wstat) ? WTERMSIG(status.wstat) : 0 ; tab[m].exitcode = WIFSIGNALED(status.wstat) ? 128 + WTERMSIG(status.wstat) : WEXITSTATUS(status.wstat) ; - if (m >= n ? s6_dtally_write(".", tab+1, n) : s6_dtally_write(".", tab, m+1)) + if (!(m >= n ? s6_dtally_write(".", tab+1, n) : s6_dtally_write(".", tab, m+1))) strerr_warnwu2sys("write ", S6_DTALLY_FILENAME) ; } } -- cgit v1.2.3