kernel: don't make the console block on carrier
authorAlan Cox <alan@linux.intel.com>
Sat, 25 Aug 2018 18:08:07 +0000 (19:08 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 25 Aug 2018 18:08:07 +0000 (19:08 +0100)
It's really annoying if you've not got it wired and you can't work out why
it hangs on boot!

Kernel/start.c

index 9af9160..53dc0bf 100644 (file)
@@ -21,7 +21,7 @@ static uint8_t ro = 1;
 static const struct termios ttydflt = {
        BRKINT | ICRNL,
        OPOST | ONLCR,
-       CS8 | TTY_INIT_BAUD | CREAD | HUPCL,
+       CS8 | TTY_INIT_BAUD | CREAD | HUPCL | CLOCAL,
        ISIG | ICANON | ECHO | ECHOE | ECHOK | IEXTEN,
        {CTRL('D'), 0, CTRL('H'), CTRL('C'),
         CTRL('U'), CTRL('\\'), CTRL('Q'), CTRL('S'),