[minicom-Bugs][314618] SIGALRM is broken on some Linux systems. Workaround patch attached.
minicom-bugs at alioth.debian.org
minicom-bugs at alioth.debian.org
Sat Mar 1 12:41:35 UTC 2014
minicom-Bugs item #314618, was opened at 2014-03-01 13:41 by David Dominguez Bonini
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=314618&group_id=30018
Status: Open
Priority: 3
Submitted By: David Dominguez Bonini (ddoming73-guest)
Assigned to: Nobody (None)
Summary: SIGALRM is broken on some Linux systems. Workaround patch attached.
Category: None
Group: None
Resolution: None
Initial Comment:
This bug has been reproduced on Ubuntu 12.04.4 LTS and minicom 2.7
The problem is that when Minicom and/or runscript are called on such a system, the SIGALRM signal is on an undefined state. It is not actually blocked, but it cannot be used correctly (the signal handler is not called).
As a result, timeouts do not work on runscript (global and expect timeouts). Some other things that depend on SIGALRM may also be broken.
There is a simple solution. Just call sigrelse(SIGALRM) on program entry and the signal will start working correctly.
More info on the possible cause of this bug here:
http://www.vttoth.com/CMS/technical-notes/14-broken-sigalrm-on-linux
A patch for minicom and runscript is attached. This patch fixes the bug on affected systems and should harmless on all others. Please apply
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=314618&group_id=30018
More information about the minicom-devel
mailing list