summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-20 22:45:49 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-20 22:45:49 +0000
commit5b7777a52d0b70b6094547c7cb4056aa9664f69d (patch)
treeb570d3ebd98c51ca02c21e8bc7bcdc6e11e5ea22 /src
parent97fa7063a3a2b5463fa893464f178d808104910e (diff)
downloads6-5b7777a52d0b70b6094547c7cb4056aa9664f69d.tar.xz
Write a warning to stderr when s6-log closes the stdout stream
Diffstat (limited to 'src')
-rw-r--r--src/daemontools-extras/s6-log.c1
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) ;