diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-04 15:27:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-04 15:27:49 (GMT) |
commit | 6fb5bae252b90b81dff19f572fe40a9051e5e51d (patch) | |
tree | 256dce9ad200730db5ba00a46a0c234bfbb09341 /Misc | |
parent | 17227a733439731d73d14a17df6222bbde8b196f (diff) | |
download | cpython-6fb5bae252b90b81dff19f572fe40a9051e5e51d.zip cpython-6fb5bae252b90b81dff19f572fe40a9051e5e51d.tar.gz cpython-6fb5bae252b90b81dff19f572fe40a9051e5e51d.tar.bz2 |
Fix race condition in create_stdio()
Issue #24891: Fix a race condition at Python startup if the file descriptor
of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set
to None if the creation of the object failed, instead of raising an OSError
exception. Initial patch written by Marco Paolini.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -1037,6 +1037,7 @@ Jan Palus Yongzhi Pan Martin Panter Mathias Panzenböck +Marco Paolini M. Papillon Peter Parente Alexandre Parenteau @@ -10,6 +10,12 @@ Release date: tba Core and Builtins ----------------- +- Issue #24891: Fix a race condition at Python startup if the file descriptor + of stdin (0), stdout (1) or stderr (2) is closed while Python is creating + sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set + to None if the creation of the object failed, instead of raising an OSError + exception. Initial patch written by Marco Paolini. + - Issue #21167: NAN operations are now handled correctly when python is compiled with ICC even if -fp-model strict is not specified. |