s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 5b7777a52d0b70b6094547c7cb4056aa9664f69d
parent 97fa7063a3a2b5463fa893464f178d808104910e
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 20 Jan 2017 22:45:49 +0000

 Write a warning to stderr when s6-log closes the stdout stream

Diffstat:
Msrc/daemontools-extras/s6-log.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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) ;