Commit 2ec6b176 authored by Victor Stinner's avatar Victor Stinner

Issue #12060: Use sig_atomic_t type and volatile keyword in the signal module.

Patch written by Charles-François Natali.
parent 0b2489e9
...@@ -10,6 +10,9 @@ What's New in Python 3.1.4? ...@@ -10,6 +10,9 @@ What's New in Python 3.1.4?
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.
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, - Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d. clear the end-of-file indicator after CTRL+d.
......
...@@ -78,12 +78,12 @@ static long main_thread; ...@@ -78,12 +78,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