Red Hat Bugzilla – Bug 248701
Minicom consumes 100% CPU upon error on a serial device
Last modified: 2007-11-30 17:12:10 EST
Description of problem:
When something bad happens to a serial port device and operations on it
start returning failures, they are being ignored due to minicom's lack of
Example of such failure is physical removal of the hardware. ioctl()s on the
gone adapter's filedescriptor will start returning failures which will get
ingored (and select() will return immediately without an complain) which will
result in an infinite loop.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start minicom
2. Forcibly remove the device driver module, or the hardware
Minicom looping infinitely.
Exit with an error message.
I attach the diff of the change that fixed the problem for me.
Created attachment 159511 [details]
Fixes infinite loop in minicom when the serial adapter goes away
Should be fixed in minicom-2.2-3.fc8. Thanks for the report.