From 6cb4e3b1f72021053d62714a3e5155cadf4da030 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 9 Jan 2016 20:45:01 +0000 Subject: [PATCH] init: don't acquire a controlling tty We want getty to be controlling /dev/tty1 so it that the shell can do job control on it once that all works. --- Applications/util/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/util/init.c b/Applications/util/init.c index a9b4e731..f8b2f13d 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -483,7 +483,7 @@ int main(int argc, char *argv[]) /* loop until we can open the first terminal */ do { - fdtty1 = open("/dev/tty1", O_RDWR); + fdtty1 = open("/dev/tty1", O_RDWR|O_NOCTTY); } while (fdtty1 < 0); /* make stdin, stdout and stderr point to /dev/tty1 */ -- 2.34.1