Files
git/compat
Johannes Schindelin 0e6b6babe9 mingw: add experimental feature to redirect standard handles
On Windows, file handles need to be marked inheritable when they need to
be used as standard input/output/error handles for a newly spawned
process. The problem with that, of course, is that the "inheritable" flag
is global and therefore can wreak havoc with highly multi-threaded
applications: other spawned processes will *also* inherit those file
handles, despite having *other* input/output/error handles, and never
close the former handles because they do not know about them.

Let's introduce a set of environment variables (GIT_REDIRECT_STDIN and
friends) that point to files, or even better, named pipes and that are
used by the spawned Git process. This helps work around above-mentioned
issue: those named pipes will be opened in a non-inheritable way upon
startup, and no handles are passed around.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-07-26 00:35:32 +02:00
..
2017-06-27 10:35:49 -07:00
2016-01-04 09:51:33 -08:00
2017-07-05 14:01:03 -07:00
2017-07-05 14:01:03 -07:00
2017-01-23 11:02:34 -08:00
2017-05-08 12:18:19 +09:00