Reset inheritable flag of debug log file git_shell_ext_debug.txt
commit58fb68044f44824f3fb96386158f62b2f8a82fd5
authorPeter Oberndorfer <kumbayo84@gmail.com>
Mon, 10 Oct 2011 18:17:46 +0000 (10 20:17 +0200)
committerHeiko Voigt <hvoigt@hvoigt.net>
Mon, 10 Oct 2011 18:46:30 +0000 (10 20:46 +0200)
tree2efc9cbaf56176af2ac611fe0194e5093fcab9b8
parentee4ca6956fe46c3053257626d99fa056c11d116a
Reset inheritable flag of debug log file git_shell_ext_debug.txt

FILE * handles opened by _wfopen are inherited to child processes
by default.
This behavior can be changed by adding "N" as mode to _wfopen.
But msvcrt used by GCC does not implement/honor this.

So just reset the inheritable flag after opening the file.
This replaces d61e9f6c do not inherit handles into child processes

Signed-off-by: Peter Oberndorfer <kumbayo84@gmail.com>
common/debug.c