Charles-François Natali added the comment: LGTM.
Note that dup() cannot fail with EINTR, it is non-blocking: dup2() can fail, because f the target FD is open, it has to close it, but not dup(). See e.g. this man page from my Debian: EINTR The dup2() or dup3() call was interrupted by a signal; see signal(7). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23694> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com