[New-bugs-announce] [issue23851] PEP 475: _posixsubprocess retries close() on EINTR

STINNER Victor report at bugs.python.org
Thu Apr 2 13:54:34 CEST 2015

New submission from STINNER Victor:

According to the PEP 475, the close() function must *not* be retried if it fails with EINTR:
- http://alobbs.com/post/54503240599/close-and-eintr
- http://lwn.net/Articles/576478/
- http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3000.html
- http://alobbs.com/post/54503240599/close-and-eintr

The _posixsubprocess retries close() when it fails with EINTR. Example:

    while (close(fd_num) < 0 && errno == EINTR);

It should be fixed.

messages: 239907
nosy: haypo
priority: normal
severity: normal
status: open
title: PEP 475: _posixsubprocess retries close() on EINTR
versions: Python 2.7, Python 3.4, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list