mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
(Merge 3.1) 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
5ebfe6d9a9
2 changed files with 6 additions and 3 deletions
|
@ -10,6 +10,9 @@ What's New in Python 3.2.1 beta 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.
|
||||||
|
|
||||||
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
|
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
|
||||||
wait for the process to end when exiting the context to avoid unintentionally
|
wait for the process to end when exiting the context to avoid unintentionally
|
||||||
leaving zombie processes around.
|
leaving zombie processes around.
|
||||||
|
|
|
@ -80,12 +80,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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue