mingw: demonstrate that all file handles are inherited by child processes
authorJohannes Schindelin <redacted>
Fri, 22 Nov 2019 14:41:02 +0000 (14:41 +0000)
committerJunio C Hamano <redacted>
Sat, 23 Nov 2019 02:17:01 +0000 (11:17 +0900)
commiteea4a7f4b3620df1b0bd3c1eb1d27e6fd4cb2ff5
tree85e86a74f553f519877a0bd1565007fc344a3812
parentd9f6f3b6195a0ca35642561e530798ad1469bd41
mingw: demonstrate that all file handles are inherited by child processes

When spawning child processes, we really should be careful which file
handles we let them inherit.

This is doubly important on Windows, where we cannot rename, delete, or
modify files if there is still a file handle open.

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-run-command.c
t/t0061-run-command.sh
git clone https://git.99rst.org/PROJECT