Skip to content

Commit

Permalink
fixup! mingw: spawned processes need to inherit only standard handles
Browse files Browse the repository at this point in the history
The conditional fall-back when file handle inheritance restricting
failed will always need to pass bInheritHandles = TRUE.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 7, 2018
1 parent 664ca48 commit 8a71352
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compat/mingw.c
Expand Up @@ -1755,8 +1755,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
restrict_handle_inheritance = 0;
flags &= ~EXTENDED_STARTUPINFO_PRESENT;
ret = CreateProcessW(*wcmd ? wcmd : NULL, wargs, NULL, NULL,
stdhandles_count ? TRUE : FALSE,
flags, wenvblk, dir ? wdir : NULL,
TRUE, flags, wenvblk, dir ? wdir : NULL,
&si.StartupInfo, &pi);
}

Expand Down

0 comments on commit 8a71352

Please sign in to comment.