diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-20 22:45:49 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-20 22:45:49 +0000 |
commit | 5b7777a52d0b70b6094547c7cb4056aa9664f69d (patch) | |
tree | b570d3ebd98c51ca02c21e8bc7bcdc6e11e5ea22 | |
parent | 97fa7063a3a2b5463fa893464f178d808104910e (diff) | |
download | s6-5b7777a52d0b70b6094547c7cb4056aa9664f69d.tar.xz |
Write a warning to stderr when s6-log closes the stdout stream
-rw-r--r-- | src/daemontools-extras/s6-log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index e7133b1..0fdbf68 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -1262,6 +1262,7 @@ int main (int argc, char const *const *argv) if (!bufalloc_flush(bufalloc_1) && !error_isagain(errno)) { unsigned int i = actlen ; + strerr_warnwu1sys("write to stdout, closing the stream - error was") ; fd_close(1) ; bufalloc_1->fd = -1 ; bufalloc_free(bufalloc_1) ; |