summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-10-31 10:41:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-11-02 19:34:16 -0700
commit1e3001a8e2386a1433d1769a5a78007596bbc04d (patch)
tree96d4e4d5211721c894221b1bb53955a8660b603a /refs
parentgit_open(): untangle possible NOATIME and CLOEXEC interactions (diff)
downloadtgif-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 'refs')
0 files changed, 0 insertions, 0 deletions