summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--init/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index cb83b088d..e3b5dc092 100644
--- a/init/init.c
+++ b/init/init.c
@@ -277,6 +277,9 @@ static void console_init(void)
277 while (fd > 2) close(fd--); 277 while (fd > 2) close(fd--);
278 } 278 }
279 messageD(L_LOG, "console='%s'", s); 279 messageD(L_LOG, "console='%s'", s);
280 } else {
281 /* Make sure fd 0,1,2 are not closed */
282 bb_sanitize_stdio();
280 } 283 }
281 284
282 s = getenv("TERM"); 285 s = getenv("TERM");