summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-01-09 09:39:22 +0100
committerSteven Barth <steven@midlink.org>2015-01-09 09:39:22 +0100
commite10fca6b88a8b57fe5a9e80dfd941ae6d98cb970 (patch)
tree8acdece4ad14feceb9132c6d81a0d80b6569033a
parent61cfe0d093056b85a311f06d44ac149e5dbb4d1a (diff)
downloadunitd-e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970.tar
unitd-e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970.zip
inittab: don't close fds unconditionally since this breaks UML
Signed-off-by: Steven Barth <steven@midlink.org>
-rw-r--r--inittab.c4
1 files changed, 0 insertions, 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)
{