From b30499178db75b494d35eb1f60c30a85f45c4dc1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Apr 2024 10:46:10 +0000 Subject: Prepare for 2.12.0.4; also close s6-svscan's stderr on exit when special Signed-off-by: Laurent Bercot --- src/supervision/s6-svscan.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/supervision') diff --git a/src/supervision/s6-svscan.c b/src/supervision/s6-svscan.c index 9c3a02f..be2dd37 100644 --- a/src/supervision/s6-svscan.c +++ b/src/supervision/s6-svscan.c @@ -156,6 +156,8 @@ static inline void close_pipes (void) fd_close(1) ; if (open2("/dev/null", O_WRONLY) < 0) strerr_warnwu1sys("open /dev/null") ; + if (fd_copy(2, 1) == -1) + strerr_warnwu1sys("redirect stderr to /dev/null") ; } } -- cgit v1.2.3