]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121586)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jul 2024 14:54:45 +0000 (16:54 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jul 2024 14:54:45 +0000 (14:54 +0000)
commit847c803c13093f3ec0a09188831e1a44f27894b1
treefc914d01d714f3da38ec4e32d5b70f9e93d8eea2
parent06b2ba3831a44804f8540809b8b927e396b2ab0c
[3.12] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121586)

On heavily loaded machines, the subprocess may finish its sleep before
the parent process manages to synchronize with it via a failed lock.

This leads to errors like:

  Exception: failed to sync child in 300.3 sec

Use pipes instead to mutually synchronize between parent and child.
(cherry picked from commit af9f6de6ea930b607f948f2c91a87fe4ca9d64db)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/_test_eintr.py