Skip to content
Permalink
Browse files

fixup! mingw: spawned processes need to inherit only standard handles

  • Loading branch information...
dscho committed Mar 20, 2018
1 parent 52f89a9 commit ddfc3f5bfad9e47121554234e5fa8693d3d4858a
Showing with 1 addition and 1 deletion.
  1. +1 −1 compat/mingw.c
@@ -1767,7 +1767,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
!(err == ERROR_INVALID_PARAMETER &&
GetVersion() >> 16 < 9200) &&
!getenv("SUPPRESS_HANDLE_INHERITANCE_WARNING")) {
DWORD fl;
DWORD fl = 0;
int i;

setenv("SUPPRESS_HANDLE_INHERITANCE_WARNING", "1", 1);

0 comments on commit ddfc3f5

Please sign in to comment.
You can’t perform that action at this time.