]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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 14:47:42 +0000 (16:47 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 14:47:42 +0000 (17:47 +0300)
commit2a41f35ebdef47b5e26aae40977ea196bfbf4de5
tree147832fb7f8740770c29adc5763eb2c716cb9c99
parent09424550211089b059ff9ca255ee2e7e9aacc866
[3.13] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346) (GH-154356)

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