(Merge 3.2) Issue #12060: Use sig_atomic_t type and volatile keyword in the
signal module. Patch written by Charles-François Natali.
This commit is contained in:
commit
aedb2823fd
|
@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #12060: Use sig_atomic_t type and volatile keyword in the signal
|
||||
module. Patch written by Charles-François Natali.
|
||||
|
||||
- Added the if_nameindex, if_indextoname, if_nametoindex methods to
|
||||
the socket module as requested in issue #1746656.
|
||||
|
||||
|
|
|
@ -88,12 +88,12 @@ static long main_thread;
|
|||
static pid_t main_pid;
|
||||
#endif
|
||||
|
||||
static struct {
|
||||
int tripped;
|
||||
static volatile struct {
|
||||
sig_atomic_t tripped;
|
||||
PyObject *func;
|
||||
} Handlers[NSIG];
|
||||
|
||||
static sig_atomic_t wakeup_fd = -1;
|
||||
static volatile sig_atomic_t wakeup_fd = -1;
|
||||
|
||||
/* Speed up sigcheck() when none tripped */
|
||||
static volatile sig_atomic_t is_tripped = 0;
|
||||
|
|
Loading…
Reference in New Issue