]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'js/mingw-inherit-only-std-handles'
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Dec 2019 21:11:42 +0000 (13:11 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Dec 2019 21:11:42 +0000 (13:11 -0800)
commit55d607d85b4c22fe2091102ed1eb907ea29b956a
tree15d39f4c879ca2ee09353de0ea98dc86cd298bb7
parent7c887142621106a303a321b51b1958112ed2bf24
parent3ba3720b3f187644ac0186a4637898f8e8f85a91
Merge branch 'js/mingw-inherit-only-std-handles'

Work around a issue where a FD that is left open when spawning a
child process and is kept open in the child can interfere with the
operation in the parent process on Windows.

* js/mingw-inherit-only-std-handles:
  mingw: forbid translating ERROR_SUCCESS to an errno value
  mingw: do set `errno` correctly when trying to restrict handle inheritance
  mingw: restrict file handle inheritance only on Windows 7 and later
  mingw: spawned processes need to inherit only standard handles
  mingw: work around incorrect standard handles
  mingw: demonstrate that all file handles are inherited by child processes
compat/mingw.c
t/helper/test-run-command.c