init: don't acquire a controlling tty
authorAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 20:45:01 +0000 (20:45 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 20:45:01 +0000 (20:45 +0000)
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

index a9b4e73..f8b2f13 100644 (file)
@@ -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 */