[New-bugs-announce] [issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)
Jarry Shaw
report at bugs.python.org
Mon Sep 24 03:25:19 EDT 2018
New submission from Jarry Shaw <jarryshaw at icloud.com>:
As in pty.spawn, once started, the parent process will be hanged, even if the child process is already dead (or a zombie), and must wait for a KeyboardInterrupt or else to terminate the whole process.
Thus, I propose to revise `_copy` function, where the parent process hung, to check if the child process is dead periodically and if so, terminate the whole process then return as shown in the patch file.
----------
components: Library (Lib)
files: pty-diff.patch
keywords: patch
messages: 326206
nosy: jarryshaw
priority: normal
severity: normal
status: open
title: pty.spawn -- auto-termination after child process is dead (a zombie)
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47820/pty-diff.patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34785>
_______________________________________
More information about the New-bugs-announce
mailing list