summaryrefslogtreecommitdiff
path: root/src/supervision
diff options
context:
space:
mode:
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") ;
}
}