projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61cfe0d
)
inittab: don't close fds unconditionally since this breaks UML
author
Steven Barth
<steven@midlink.org>
Fri, 9 Jan 2015 08:39:22 +0000
(09:39 +0100)
committer
Steven Barth
<steven@midlink.org>
Fri, 9 Jan 2015 08:39:22 +0000
(09:39 +0100)
Signed-off-by: Steven Barth <steven@midlink.org>
inittab.c
patch
|
blob
|
history
diff --git
a/inittab.c
b/inittab.c
index 2efbf4d69174240bf897ec02df52a16d16671d47..623103de640b1e7609933a175fce3dfed716e715 100644
(file)
--- 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)
{