Re: [PATCH v3 2/3] sha1_file: open window into packfiles with O_CLOEXEC
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Oct 28, 2016, 16:13 UTC
- Message-ID
- <CA+55aFw93vkraxBvFCXFSYJqn836tXW+OCOFuToN+HaxTcJ7cg@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1610281306320.3264@virtualbox>
On Fri, Oct 28, 2016 at 4:11 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > You guys. I mean: You guys! You sure make my life hard. A brief look at > mingw.h could have answered your implicit question:
So here's what you guys should do:
- leave O_NOATIME damn well alone. It works. It has worked for 10+ years. Stop arguing against it, people who do.
- get rid of all O_CLOEXEC games. They don't work. If you want to close file descriptors at execve(), you - gasp - close the file descriptor before doing an execve.
So O_CLOEXEC or FD_CLOEXEC is broken.
DO NOT BREAK O_NOATIME JUST TO ADD COMPLETELY NEW BREAKAGE.
Linus