Linediscipline behaviour

Dag Nygren (
Sat, 29 Sep 2001 15:50:00 +0300


Just checked out why my pppd hangs on exit
when the device is connected through USB
and found out that the reason was that the
code tried to change the linediscipline back
to what it was before ppd and that the ioctl()
hangs if the device doesn't exist any more as
the USB device has disappeared at that point.

Shouldn't the ioctl(TIOCSETD) return a ENODEV
instead of hanging ?
The previous tcflush() does indeed do that and the
problem was then avoidable, but I think I just
fixed the symptoms, not the disease....


Dag Nygren                               email:
Oy Espoon NewTech Ab                     phone: +358 9 8024910
Trńsktorpet 3                              fax: +358 9 8024916
02360 ESBO                              Mobile: +358 400 426312

- 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