> I really wish file descriptors were non inheritable by default.
In Python 3.4, they are (released ten years ago).
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.