From: Steven Barth Date: Fri, 9 Jan 2015 08:39:22 +0000 (+0100) Subject: inittab: don't close fds unconditionally since this breaks UML X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970;p=oweals%2Fprocd.git inittab: don't close fds unconditionally since this breaks UML Signed-off-by: Steven Barth --- 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) {