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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23851>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to