From: Alan Cox Date: Sat, 9 Jan 2016 20:45:01 +0000 (+0000) Subject: init: don't acquire a controlling tty X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6cb4e3b1f72021053d62714a3e5155cadf4da030;p=FUZIX.git 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. --- 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 */