Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 84761:276477d5a548
Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error
PyOS_InitInterrupts() can raise error when importing the signal module
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Sun, 21 Jul 2013 13:25:51 +0200 |
| parents | af18829a7754 |
| children | fc718c177ee6 |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun Jul 21 13:05:38 2013 +0200 +++ b/Python/pythonrun.c Sun Jul 21 13:25:51 2013 +0200 @@ -2481,6 +2481,9 @@ PyOS_setsig(SIGXFSZ, SIG_IGN); #endif PyOS_InitInterrupts(); /* May imply initsignal() */ + if (PyErr_Occurred()) { + Py_FatalError("Py_Initialize: can't import signal"); + } }
