summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init/s6-linux-init-maker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index e693041..e3aba18 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -67,6 +67,8 @@ static int s6_svscan_log_script (buffer *b)
char fmt[UINT64_FMT] ;
if (buffer_puts(b,
"#!" EXECLINE_EXTBINPREFIX "execlineb -P\n\n"
+ "redirfd -w 2 /dev/console\n"
+ "redirfd -w 1 /dev/null\n"
"redirfd -rnb 0 fifo\n"
"s6-applyuidgid -u ") < 0
|| buffer_put(b, fmt, uint64_fmt(fmt, uncaught_logs_uid)) < 0