Messages in this thread Patch in this message | | | Subject | Re: Linux-2.0.1 (patch in serial.c is a problem) | Date | Wed, 3 Jul 1996 21:58:03 +0200 (MET DST) | From | "Carsten Paeth" <> |
| |
> > Anything else? > > Linus >
The patch in serial.c breaks all getty's (mgetty/agetty/uugetty) on serial lines, because CLOCAL is not long set by default. I undo this patch for me, now it is working.
diff -u --recursive --new-file v2.0.0/linux/drivers/char/serial.c linux/drivers/ char/serial.c --- v2.0.0/linux/drivers/char/serial.c Sun Jun 9 13:28:42 1996 +++ linux/drivers/char/serial.c Tue Jul 2 19:08:42 1996 @@ -2755,9 +2755,8 @@ serial_driver.type = TTY_DRIVER_TYPE_SERIAL; serial_driver.subtype = SERIAL_TYPE_NORMAL; serial_driver.init_termios = tty_std_termios; - serial_driver.init_termios.c_cflag = - B9600 | CS8 | CREAD | HUPCL | CLOCAL; - serial_driver.flags = TTY_DRIVER_REAL_RAW; + serial_driver.init_termios.c_lflag &=~ (ISIG | ICANON | ECHO); + serial_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_RESET_TERMIOS; serial_driver.refcount = &serial_refcount; serial_driver.table = serial_table; serial_driver.termios = serial_termios; calle -- calle@calle.in-berlin.de
| |