about summary refs log tree commit diff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-15 10:46:10 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-15 10:46:10 +0000
commitb30499178db75b494d35eb1f60c30a85f45c4dc1 (patch)
tree2bcbbed14d5e761e01d5101d8ca5bb325f0ad484 /src/supervision
parent9bf94d170fd0d5540be8c6337f53ed71dbca268a (diff)
downloads6-b30499178db75b494d35eb1f60c30a85f45c4dc1.tar.gz
s6-b30499178db75b494d35eb1f60c30a85f45c4dc1.tar.xz
s6-b30499178db75b494d35eb1f60c30a85f45c4dc1.zip
Prepare for 2.12.0.4; also close s6-svscan's stderr on exit when special
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision')
-rw-r--r--src/supervision/s6-svscan.c2
1 files changed, 2 insertions, 0 deletions
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") ;
   }
 }