diff options
author | Steven Barth <steven@midlink.org> | 2015-01-09 09:39:22 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-01-09 09:39:22 +0100 |
commit | e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970 (patch) | |
tree | 8acdece4ad14feceb9132c6d81a0d80b6569033a | |
parent | 61cfe0d093056b85a311f06d44ac149e5dbb4d1a (diff) | |
download | unitd-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) { |