]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 21 Jul 2026 13:12:20 +0000 (16:12 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 13:12:20 +0000 (16:12 +0300)
commitf69f7fd526b6601a74ce0852c75466a183a86cea
treeca2280a2634cca6ae6005ef70bb4a6e0af673eae
parentdc72be1923a37042aee60354059e43d472de7803
gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346)

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.

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