summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-07 09:39:03 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-07 09:39:03 (GMT)
commit44e31baf958b31c3eb0b79b4e5c7176b4c6d11a7 (patch)
treec6e80c64403b86b9ce935bae280ecdd8d46e48d0
parent9699440b577cf396c23eacef94c236559e3eaa40 (diff)
downloadcpython-44e31baf958b31c3eb0b79b4e5c7176b4c6d11a7.zip
cpython-44e31baf958b31c3eb0b79b4e5c7176b4c6d11a7.tar.gz
cpython-44e31baf958b31c3eb0b79b4e5c7176b4c6d11a7.tar.bz2
faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction()
-rw-r--r--Modules/faulthandler.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 0825e84..cfbfda6 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -218,12 +218,7 @@ faulthandler_dump_traceback_py(PyObject *self,
This function is signal safe and should only call signal safe functions. */
static void
-faulthandler_fatal_error(
- int signum
-#ifdef HAVE_SIGACTION
- , siginfo_t *siginfo, void *ucontext
-#endif
-)
+faulthandler_fatal_error(int signum)
{
const int fd = fatal_error.fd;
unsigned int i;
@@ -320,7 +315,7 @@ faulthandler_enable(PyObject *self, PyObject *args, PyObject *kwargs)
for (i=0; i < faulthandler_nsignals; i++) {
handler = &faulthandler_handlers[i];
#ifdef HAVE_SIGACTION
- action.sa_sigaction = faulthandler_fatal_error;
+ action.sa_handler = faulthandler_fatal_error;
sigemptyset(&action.sa_mask);
/* Do not prevent the signal from being received from within
its own signal handler */