]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jul 2026 15:04:39 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 15:04:39 +0000 (15:04 +0000)
commit5f05d2f67974ba424d7650823e7df06f90e54645
tree55d2c791ffceb2775bcd941c34ab3374b8046e27
parent9ee705ffa8041d5f6b44178a583114a4fa40ad73
[3.14] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346) (GH-154355)

Pushing the "ptem" STREAMS module makes a session leader without a
controlling terminal acquire the slave as one, so closing the file
descriptors sent SIGHUP to the session and killed the regrtest worker.
Disown it after the pushes, as os.openpty() does.
(cherry picked from commit f69f7fd526b6601a74ce0852c75466a183a86cea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_os.py