diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-04-15 10:46:10 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-04-15 10:46:10 +0000 |
commit | b30499178db75b494d35eb1f60c30a85f45c4dc1 (patch) | |
tree | 2bcbbed14d5e761e01d5101d8ca5bb325f0ad484 /src/supervision | |
parent | 9bf94d170fd0d5540be8c6337f53ed71dbca268a (diff) | |
download | s6-b30499178db75b494d35eb1f60c30a85f45c4dc1.tar.xz |
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.c | 2 |
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") ; } } |