From 5b7777a52d0b70b6094547c7cb4056aa9664f69d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 20 Jan 2017 22:45:49 +0000 Subject: Write a warning to stderr when s6-log closes the stdout stream --- src/daemontools-extras/s6-log.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/daemontools-extras') 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) ; -- cgit v1.2.3