[lkml]   [2003]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Bug 982] New: cu -l /dev/ttyS0 got a signal hangup in 2.5 kernel
On Sun, Jul 27, 2003 at 10:13:54PM -0700, Martin J. Bligh wrote:
> Distribution: SuSE SLES8
> Hardware Environment:NetVista 6579-A4U Pentium III - 866 MHz 256MB RAM
> Software Environment:2.5.75 kernel
> Problem Description: cu session fails to log into the other machine which is connected with a
> null modem serial cable between serial ports.
> It works fine in 2.4.19 4GB kernel
> Steps to reproduce:
> 1. connecting two systems with a null modem serial cable between serial ports.
> 2. On one machine, do : cu -l /dev/ttyS0
> On other system, have /sbin/agetty -L 9600 ttyS0 vt100 running.
> and ttyS0 has been defined in /etc/securetty
> 3. cu session connected and showed you the login prompt.
> 4. Got a hangup signal and disconnected after typing "root" or any user ID.
> It supposes to prompt you "password:" to let you type the password of the other machine
> to login to that system.

If I remember to update bugzilla...

What seems to be happening is that cu is clearing the "clocal" termios bit.
This means that when the CD line is dropped on ttyS0, cu receives a hangup
signal, as per the POSIX spec. This seems reasonable.

There is a change of behaviour between 2.4 and 2.5 kernels though
(please confirm) - if you use the "callout" devices in 2.4, you don't
receive this hangup signal, even if the clocal bit is cleared. Callout
devices no longer exist in 2.5.

The real question is this - why is the CD line being dropped between the
two machines between typing in the user name and asking for the password.

Maybe someone with this problem can give some details about the system
they're trying to log into rather than the local system.

Russell King ( The developer of ARM Linux

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.055 / U:3.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site