STINNER Victor added the comment: I created the PEP 433 which proposes a more global change to set the close-on-exec flag. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue16850> _______________________________________