Browse Source

inittab: don't close fds unconditionally since this breaks UML

Signed-off-by: Steven Barth <steven@midlink.org>
Steven Barth 9 years ago
parent
commit
e10fca6b88
1 changed files with 0 additions and 4 deletions
  1. 0 4
      inittab.c

+ 0 - 4
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)
 		{