diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-12-18 23:52:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-18 23:52:39 +0100 |
| commit | 05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db (patch) | |
| tree | ebab2882076c062d0515734909b4eef59430718b /Misc | |
| parent | b5c8cfa1da17c6f3acac80a0afca7f7104fb9589 (diff) | |
| download | cpython-git-05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db.tar.gz | |
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
Diffstat (limited to 'Misc')
| -rw-r--r-- | Misc/NEWS.d/next/Tests/2018-12-18-23-20-39.bpo-31731.tcv85C.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2018-12-18-23-20-39.bpo-31731.tcv85C.rst b/Misc/NEWS.d/next/Tests/2018-12-18-23-20-39.bpo-31731.tcv85C.rst new file mode 100644 index 0000000000..530977c6e8 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-12-18-23-20-39.bpo-31731.tcv85C.rst @@ -0,0 +1,4 @@ +Fix a race condition in ``check_interrupted_write()`` of test_io: create +directly the thread with SIGALRM signal blocked, rather than blocking the +signal later from the thread. Previously, it was possible that the thread gets +the signal before the signal is blocked. |
