diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-31 10:41:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-02 19:34:16 -0700 |
commit | 1e3001a8e2386a1433d1769a5a78007596bbc04d (patch) | |
tree | 96d4e4d5211721c894221b1bb53955a8660b603a /t/t2013-checkout-submodule.sh | |
parent | git_open(): untangle possible NOATIME and CLOEXEC interactions (diff) | |
download | tgif-1e3001a8e2386a1433d1769a5a78007596bbc04d.tar.xz |
git_open_cloexec(): use fcntl(2) w/ FD_CLOEXEC fallback
A platform might not support open(2) with O_CLOEXEC but may support
telling the same with fcntl(2) to flip FD_CLOEXEC bit on on an open
file descriptor. It is a fallback that is inherently racy and this
may not be worth doing, though.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2013-checkout-submodule.sh')
0 files changed, 0 insertions, 0 deletions