[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



[issue3905] subprocess failing in GUI applications on Windows

2011-04-05 Thread Todd Whiteman

Todd Whiteman twhit...@yahoo.com.au added the comment:

I still see this problem (in Python 2.7.1 and Python 3.1.2).

When testing using idle, you'll need to launch using pythonw.exe, i.e.:

pythonw.exe lib\idlelib\idle.py

--

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



[issue9609] make cProfile multi-stack aware

2010-09-27 Thread Todd Whiteman

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


--
nosy: +twhitema

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



[issue8350] os.mkdir doc comment is incorrect

2010-04-08 Thread Todd Whiteman

New submission from Todd Whiteman twhit...@yahoo.com.au:

The doc command for os.mkdir is incorrect (at least for posix). It specifies 
that there is an optional mode keyword, but it's not a keyword argument, see 
below:

 import os
 help(os.mkdir)
mkdir(...)
mkdir(path [, mode=0777])

Create a directory.

 os.mkdir(/tmp/1, mode=777) 
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: mkdir() takes no keyword arguments


Suggest the following doc comment change:

mkdir(...)
mkdir(path [, mode])

Create a directory. Mode defaults to 0777 if not specified.

--
assignee: georg.brandl
components: Documentation
messages: 102648
nosy: georg.brandl, twhitema
severity: normal
status: open
title: os.mkdir doc comment is incorrect
versions: Python 2.6, Python 3.1

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



[issue7753] newgil backport

2010-02-02 Thread Todd Whiteman

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


--
nosy: +twhitema

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2009-08-26 Thread Todd Whiteman

Todd Whiteman twhit...@yahoo.com.au added the comment:

Is this a duplicate of this already fixed issue: issue5179 ?

--
nosy: +twhitema

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



[issue2057] difflib: add patch capability

2009-06-03 Thread Todd Whiteman

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


--
nosy: +twhitema

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



[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-11-12 Thread Todd Whiteman

Changes by Todd Whiteman [EMAIL PROTECTED]:


--
nosy: +twhitema

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2054
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4171] SSL handshake fails after TCP connection in getpeername()

2008-11-09 Thread Todd Whiteman

Changes by Todd Whiteman [EMAIL PROTECTED]:


--
nosy: +twhitema

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4171
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Todd Whiteman

Todd Whiteman [EMAIL PROTECTED] added the comment:

Uh, the Idle bug reported by Jean-Michel is a completely different bug
(please see the first three messages of this report).

Please re-open this bug, as the subprocess issue I have reported is
still outstanding.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-18 Thread Todd Whiteman

Todd Whiteman [EMAIL PROTECTED] added the comment:

This seems to be somewhat related to issue1124861:
http://bugs.python.org/issue1124861

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com