Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! mingw: spawned processes need to inherit only standard handles
Let's make the code a little more robust: when `CreateProcess()` fails and we tried to restrict handle inheritance, and when that failure was *still* not anticipated by the current code, warn loudly but fall back to not restricting the handle inheritance. Use an environment variable to avoid warning more than once per Git operation, because it would get very annoying if a simple `git fetch` reported the same type of warning about six times. This should avoid blocking users if there are still bugs left, but still give us the benefit of proper bug reports. While at it, reformat the CreateProcess() call to conform to Git's conventions. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information