From caa14c21ac2f7c6d458b616d912024a0c4fc6d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 17 Apr 2020 09:02:08 +0000 Subject: [PATCH] Disable stdin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.c b/init.c index 772bdb8..7837e7a 100644 --- a/init.c +++ b/init.c @@ -227,7 +227,8 @@ main(int argc, char *argv[]) setsid(); si_init_fs(); - si_init_fd("/dev/console", (int[]){0, 1, 2}, 3); + si_init_fd("/dev/null", (int[]){0}, 1); + si_init_fd("/dev/console", (int[]){1, 2}, 2); si_init_fd("/dev/kmsg", (int[]){2}, 1); si_init_term();