summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-10-13 14:48:50 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2004-10-13 14:48:50 (GMT)
commit9ceaa72ebe96cb5423aa3fb2adede3fcd1c7b6b0 (patch)
tree89e6ac6b3f1ec58c13296765e2301b854a6150d6 /Modules/signalmodule.c
parent7d428788e156200df2f8e6421cad9fce083fd96b (diff)
downloadcpython-9ceaa72ebe96cb5423aa3fb2adede3fcd1c7b6b0.zip
cpython-9ceaa72ebe96cb5423aa3fb2adede3fcd1c7b6b0.tar.gz
cpython-9ceaa72ebe96cb5423aa3fb2adede3fcd1c7b6b0.tar.bz2
Patch #975056 - fixes for restartable signals on *BSD. In addition,
a few remaining calls to signal() were converted to PyOS_setsig().
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 333fe77..f952e3e 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -137,9 +137,6 @@ signal_handler(int sig_num)
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;