mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
* various modules: #include "Python.h" and remove most remporary
renaming hacks
This commit is contained in:
parent
a96720907a
commit
602099a756
6 changed files with 19 additions and 66 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue