Subprocess: Don't close all file descriptors by default (close_fds=False)
bugs.python.org
bugs.python.org
I get this proposal's rationale, but it seems that it would implicitly make fd leaks more prone in python programs
In Python 3.4, they are (released ten years ago).
close_range(3, ~0U, CLOSE_RANGE_UNSHARE);
execve(....);
...but it's not very portable yet.Throw in IOCP and you realize that NT is a pretty solid, well-thought-out OS
Really apart from the lack of unix shell like automation and some serious security holes, this was a good system. Unfortunately, starting with XP, the end user was not Microsoft's center of attention anymore, and the OS gets worse every new version since.
Yes.
> Inheritability being an fcntl is definitely one of the worst bits
Well, or you can use O_CLOEXEC in most APIs that create an fd.
First time I hear about this, interesting. I wonder what the performance benefits are like.