Package: minicom
Version: 2.1-7

I use minicom on a USB-to-serial converter on /dev/ttyUSB0. When the USB device gets pulled out of the PC, minicom starts eating CPU time. An strace shows:

ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
select(4, [0 3], NULL, NULL, {1, 0})    = 1 (in [3], left {0, 779000})
read(3, "", 127)                        = 0
ioctl(3, TIOCMGET, [0])                 = -1 EIO (Input/output error)
select(4, [0 3], NULL, NULL, {1, 0})    = 1 (in [3], left {1, 0})
read(3, "", 127)                        = 0
ioctl(3, TIOCMGET, [0])                 = -1 EIO (Input/output error)
select(4, [0 3], NULL, NULL, {1, 0})    = 1 (in [3], left {1, 0})
read(3, "", 127)                        = 0
...etc...

I know that it's not very smart to pull out the device when it's in use, but I think minicom should handle it a little better... there are clear signs the serial port is no longer in the land of the living.

Eric



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to