[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2019-02-25 Thread Jarry Shaw


Jarry Shaw  added the comment:

This issue is duplicated with issue26228, sorry.

--
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2019-02-21 Thread Martin Panter


Martin Panter  added the comment:

Suggest closing this assuming it is a duplicate, unless Jarry can give more 
information.

--
resolution:  -> duplicate
status: open -> pending
superseder:  -> pty.spawn hangs on FreeBSD 9.3, 10.x

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2018-09-29 Thread Martin Panter

Martin Panter  added the comment:

Is this to get “spawn” working on a non-Linux platform like a recent Free BSD, 
OS X, or Solaris? If so, see Issue 26228.

If not, you might have to explain your use case better. Polling for the child 
exiting is going to race with handling the child’s output, and if there are 
other processes writing to the terminal after the child exits this will change 
the behaviour.

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2018-09-24 Thread Jarry Shaw


Change by Jarry Shaw :


--
pull_requests: +8930
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2018-09-24 Thread Jarry Shaw


New submission from Jarry Shaw :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com