Applied patch 1669481, slightly modified: Support close_fds on Win32
3 files changed