Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just the open ones in the child process before exec(). It now closes only the open fds when it is possible to safely determine what those are.
G
Gregory P. Smith committed
d635af5a61897e6246bfb1ddf7e4d496bfd1121d