mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error
PyOS_InitInterrupts() can raise error when importing the signal module
This commit is contained in:
parent
41801f5812
commit
d786ad55ef
1 changed files with 3 additions and 0 deletions
|
@ -2481,6 +2481,9 @@ initsigs(void)
|
||||||
PyOS_setsig(SIGXFSZ, SIG_IGN);
|
PyOS_setsig(SIGXFSZ, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
PyOS_InitInterrupts(); /* May imply initsignal() */
|
PyOS_InitInterrupts(); /* May imply initsignal() */
|
||||||
|
if (PyErr_Occurred()) {
|
||||||
|
Py_FatalError("Py_Initialize: can't import signal");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue