diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-26 21:20:09 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-26 21:20:09 +0000 |
commit | 23edd6b9a4cca74cada39bffa9d71e2428689b67 (patch) | |
tree | 38a74f09523a1cdd8f995beada1ddabdf5c1eca7 /src | |
parent | 08103d563a9a85b0eec1c98824788cea9dd0ed8e (diff) | |
download | s6-23edd6b9a4cca74cada39bffa9d71e2428689b67.tar.xz |
Bugfix: inverted warning condition on s6_dtally_write (non-critical)
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-supervise.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) ; } } |