New submission from Jarry Shaw <jarrys...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue34785> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com