* various modules: #include "Python.h" and remove most remporary

renaming hacks
This commit is contained in:
Guido van Rossum 1994-09-14 13:32:22 +00:00
parent a96720907a
commit 602099a756
6 changed files with 19 additions and 66 deletions

View file

@ -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
@ -103,6 +99,15 @@ PySignal_Handler(sig_num)
PySignal_SignalHandlerArray[sig_num].tripped = 1;
#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);
}