Patch #975056 - fixes for restartable signals on *BSD. In addition,

a few remaining calls to signal() were converted to PyOS_setsig().
This commit is contained in:
Anthony Baxter 2004-10-13 14:48:50 +00:00
parent 7d428788e1
commit 9ceaa72ebe
5 changed files with 28 additions and 48 deletions

View file

@ -136,9 +136,6 @@ signal_handler(int sig_num)
to the Python handler... */
return;
}
#endif
#ifdef HAVE_SIGINTERRUPT
siginterrupt(sig_num, 1);
#endif
PyOS_setsig(sig_num, signal_handler);
}
@ -217,9 +214,6 @@ signal_signal(PyObject *self, PyObject *args)
}
else
func = signal_handler;
#ifdef HAVE_SIGINTERRUPT
siginterrupt(sig_num, 1);
#endif
if (PyOS_setsig(sig_num, func) == SIG_ERR) {
PyErr_SetFromErrno(PyExc_RuntimeError);
return NULL;