comparison 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
comparison
equal deleted inserted replaced
84760:026593cbc006 84761:276477d5a548
2479 #endif 2479 #endif
2480 #ifdef SIGXFSZ 2480 #ifdef SIGXFSZ
2481 PyOS_setsig(SIGXFSZ, SIG_IGN); 2481 PyOS_setsig(SIGXFSZ, SIG_IGN);
2482 #endif 2482 #endif
2483 PyOS_InitInterrupts(); /* May imply initsignal() */ 2483 PyOS_InitInterrupts(); /* May imply initsignal() */
2484 if (PyErr_Occurred()) {
2485 Py_FatalError("Py_Initialize: can't import signal");
2486 }
2484 } 2487 }
2485 2488
2486 2489
2487 /* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. 2490 /* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL.
2488 * 2491 *