diff options
author | Guido van Rossum <guido@python.org> | 1994-09-14 13:32:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-09-14 13:32:22 (GMT) |
commit | 602099a7560ab65cd3e0fde9a3defc9e2beb9d87 (patch) | |
tree | dfc4b4549b3466e81bccd5ceac4bc25ae926089e /Modules/signalmodule.c | |
parent | a96720907a040a331f4a75c254a6172daa7273e7 (diff) | |
download | cpython-602099a7560ab65cd3e0fde9a3defc9e2beb9d87.zip cpython-602099a7560ab65cd3e0fde9a3defc9e2beb9d87.tar.gz cpython-602099a7560ab65cd3e0fde9a3defc9e2beb9d87.tar.bz2 |
* various modules: #include "Python.h" and remove most remporary
renaming hacks
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index ed441fd..bbb077f 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -24,16 +24,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Signal module -- many thanks to Lance Ellinghouse */ -#include "allobjects.h" -#include "modsupport.h" -#include "ceval.h" +#include "Python.h" #include "intrcheck.h" #include <signal.h> #include <errno.h> -#include "rename1.h" - #ifndef SIG_ERR #define SIG_ERR ((RETSIGTYPE (*)())-1) #endif @@ -104,6 +100,15 @@ PySignal_Handler(sig_num) #ifdef WITH_THREAD } #endif +#ifdef SIGCHLD + if (sig_num == SIGCHLD) { + /* To avoid infinite recursion, this signal remains + reset until explicit re-instated. + Don't clear the 'func' field as it is our pointer + to the Python handler... */ + return; + } +#endif (void *)signal(sig_num, &PySignal_Handler); } |