From e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 9 Jan 2015 09:39:22 +0100 Subject: inittab: don't close fds unconditionally since this breaks UML Signed-off-by: Steven Barth --- inittab.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inittab.c b/inittab.c index 2efbf4d..623103d 100644 --- a/inittab.c +++ b/inittab.c @@ -99,10 +99,6 @@ static void fork_worker(struct init_action *a) if (!a->proc.pid) { p = setsid(); - close(STDIN_FILENO); - close(STDOUT_FILENO); - close(STDERR_FILENO); - fd = dev_open(a->id); if (fd != -1) { -- cgit v1.2.3