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: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=commitdiff_plain;h=e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970;hp=61cfe0d093056b85a311f06d44ac149e5dbb4d1a 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) {