Le Fri, 26 Jul 2013 14:08:35 +0200, Victor Stinner <victor.stin...@gmail.com> a écrit : > > After having written 2 PEP on the topic, I slowly agree that make all > file descriptors non-inheritable is the best *compromise*. It solves > most, or all, issues.
Even stdin/stdout/stderr? I think inheriting them is the sane default. > The main drawback is the additionnal syscalls: on some platforms, 2 > additional syscalls are need to make a file descriptor non-inheritable > for each creation of file descriptor. According to my benchmark on the > implementation of the PEP 433: the overhead of making a file > descriptor non-inheritable is between 1% and 3% (7.8 µs => 7.9 or 8.0 > µs) on Linux 3.6. 1% and 3% of what? You're telling us there's a 0.1µs overhead. It's positively tiny. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com