From 7b7c6fa589acf72320bf1e20d7928e0b3934bd38 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(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 814220b40e..040172bb3d 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 v1.2.1