]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109582: test_fork_signal_handling should wait for event (GH-109605) (#109695)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Oct 2023 15:14:30 +0000 (08:14 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:14:30 +0000 (17:14 +0200)
commit05b139b599bbe2125bd81eb7ac3e55743c01d974
treef448e313419c9fe53b43886eb34f5d46668d7717
parent5baa8af8daa65a819b41974391efbe5f9a572fa6
[3.12] gh-109582: test_fork_signal_handling should wait for event (GH-109605) (#109695)

gh-109582: test_fork_signal_handling should wait for event (GH-109605)

Sometimes the child_handled event was missing because either
the child quits before it gets a chance to handle the signal,
or the parent asserts before the event notification is
delivered via IPC.  Synchronize explicitly to avoid this.
(cherry picked from commit 608c1f3083ea1e06d383ef1a9878a9758903de4b)

Co-authored-by: Davide Rizzo <sorcio@gmail.com>
Lib/test/test_asyncio/test_unix_events.py