Commit aedb2823 authored by Victor Stinner's avatar Victor Stinner

(Merge 3.2) Issue #12060: Use sig_atomic_t type and volatile keyword in the

signal module. Patch written by Charles-François Natali.
parents 5ed2e779 5ebfe6d9
...@@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1? ...@@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1?
Core and Builtins 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 - Added the if_nameindex, if_indextoname, if_nametoindex methods to
the socket module as requested in issue #1746656. the socket module as requested in issue #1746656.
......
...@@ -88,12 +88,12 @@ static long main_thread; ...@@ -88,12 +88,12 @@ static long main_thread;
static pid_t main_pid; static pid_t main_pid;
#endif #endif
static struct { static volatile struct {
int tripped; sig_atomic_t tripped;
PyObject *func; PyObject *func;
} Handlers[NSIG]; } Handlers[NSIG];
static sig_atomic_t wakeup_fd = -1; static volatile sig_atomic_t wakeup_fd = -1;
/* Speed up sigcheck() when none tripped */ /* Speed up sigcheck() when none tripped */
static volatile sig_atomic_t is_tripped = 0; static volatile sig_atomic_t is_tripped = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment