]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:49:13 +0000 (16:49 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 14:49:13 +0000 (17:49 +0300)
commite265465d0519a38a89e52611110da806472f9432
tree5b1e49192d351bdd2043dab4934561cee459b4f1
parentb8c7ff982144dc0057686c8a50e53446a7287db4
[3.15] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346) (GH-154354)

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/test_os.py