> So, if we agree that "cloexec-by-default" is a desirable goal, despite > the inconsistency with POSIX (just as changing integer division was > seen as desirable, despite the inconsistency with C) ...
I don't plan to enable cloexec by default in a near future, nor in python 4. Someone else may change that later. Having a global flag should be enough. Enabling cloexec by default is interesting if *all* libraries respect the global flag (even C libraries), so subprocess can be used with close_fds=False. Closing all file descriptors is slow, especially on FreeBSD (it's now faster on linux, python lists /proc/pid/fd/). Victor
_______________________________________________ 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