From d786ad55ef7318d573cec7c57abe4f6d6c3a0439 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 21 Jul 2013 13:25:51 +0200 Subject: Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error PyOS_InitInterrupts() can raise error when importing the signal module --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 814220b..040172b 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -2481,6 +2481,9 @@ initsigs(void) PyOS_setsig(SIGXFSZ, SIG_IGN); #endif PyOS_InitInterrupts(); /* May imply initsignal() */ + if (PyErr_Occurred()) { + Py_FatalError("Py_Initialize: can't import signal"); + } } -- cgit v0.12