]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121585)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jul 2024 15:02:26 +0000 (17:02 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jul 2024 15:02:26 +0000 (15:02 +0000)
commit0113c56a203c3569013c6d08486ccce2e9b7016b
treecaf51fd30596b6bb93fb4c136f36b23ff6a212f8
parent0504f45b795d508014031ff0884160ddd86e44a1
[3.13] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121585)

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