Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error

PyOS_InitInterrupts() can raise error when importing the signal module
This commit is contained in:
Victor Stinner 2013-07-21 13:25:51 +02:00
parent 41801f5812
commit d786ad55ef
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}
}