[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 484c50bf445c by Gregory P. Smith in branch '3.2':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
http://hg.python.org/cpython/rev/484c50bf445c

New changeset ba8d85552e34 by Gregory P. Smith in branch '3.3':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
http://hg.python.org/cpython/rev/ba8d85552e34

New changeset 9032b3f52819 by Gregory P. Smith in branch 'default':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD to
http://hg.python.org/cpython/rev/9032b3f52819

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 53e91fa35f8e by Gregory P. Smith in branch '2.7':
Issue #15756: subprocess.poll() now properly handles errno.ECHILD to
http://hg.python.org/cpython/rev/53e91fa35f8e

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-09 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-31 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
versions:  -Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-31 Thread Gregory P. Smith

Gregory P. Smith added the comment:

thanks!  I'll take care of getting this fix in.

--
assignee:  - gregory.p.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-25 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-21 Thread Todd Whiteman

New submission from Todd Whiteman:

In the case of a errno.ECHILD exception - Python's subprocess module misses 
the fact that the process has already ended.

The following code will wait indefinitely, even though the launched process is 
quickly ended:

import subprocess, signal
signal.signal(signal.SIGCLD, signal.SIG_IGN)
p = subprocess.Popen(['echo','foo'])
while p.poll() is None:
   pass # wait for the process to exit

Note: This is the exact same issue as issue1731717, but applying to the 
subprocess.poll() method instead of the subprocess.wait() method.

--
components: Library (Lib)
messages: 168798
nosy: twhitema
priority: normal
severity: normal
status: open
title: subprocess.poll() does not handle errno.ECHILD No child processes
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-21 Thread Todd Whiteman

Changes by Todd Whiteman twhit...@yahoo.com.au:


--
nosy: +gregory.p.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-08-21 Thread Todd Whiteman

Todd Whiteman added the comment:

The attached patch handles errno.ECHILD in the _internal_poll() method and I've 
updated the existing sigchild_ignore.py test file to perform polling as well.

An unpatched version of Pyhton would normally hang on this particular test, 
whilst the patched version will run successfully.

--
keywords: +patch
Added file: http://bugs.python.org/file26951/issue15756_poll_v1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com