[New-bugs-announce] [issue12493] subprocess: Popen.communicate() doesn't handle EINTR in some cases

STINNER Victor report at bugs.python.org
Tue Jul 5 00:03:10 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

subprocess.Popen.communicate() doesn't catch EINTR error if it is called without timeout and if there is only one PIPE (stdout or stderr).

Attached patch fixes these cases. It may need a test.

I found this bug while working on test_signal, especially on the inter process signal tests.

----------
components: Library (Lib)
files: subprocess_communicate_eintr.patch
keywords: patch
messages: 139811
nosy: haypo
priority: normal
severity: normal
status: open
title: subprocess: Popen.communicate() doesn't handle EINTR in some cases
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22571/subprocess_communicate_eintr.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12493>
_______________________________________


More information about the New-bugs-announce mailing list