Thread (3 messages) 3 messages, 3 authors, 2016-10-29

Re: [PATCH v3 2/3] sha1_file: open window into packfiles with O_CLOEXEC

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-10-29 17:07:07

On Sat, Oct 29, 2016 at 1:25 AM, Johannes Schindelin
[off-list ref] wrote:
Correct. We cannot change an open file handle's state ("FD_CLOEXEC") on
Windows, but we can ask open() to open said file handle with the correct
flag ("O_CLOEXEC", which is mapped to O_NOINHERIT on Windows.
Ok. So then I have no issues with it, and let's use O_CLOEXEC if it
exists and fcntl(FD_CLOEXEC) if O_CLOEXEC doesn't exist.

              Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help