sbcl doesn't offer a way to reinstate a signal handler broken by foreign code
Bug #548612 reported by
Nikodemus Siivola
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Confirmed
|
Low
|
Unassigned |
Bug Description
Foreign libraries can mess with SBCL installed signal handlers. INSTALL-HANDLER cannot be used to recover from such situations as it doesn't call sigaction() again.
Something like WITH-RECOVERED-
To post a comment you must log in.
In C, this would look something like:
#include <signal.h>
struct sigaction old_action;
sigaction (SIGALRM, NULL, &old_action);
/* call foreign library */
sigaction (SIGALRM, &old_action, NULL);