Re: [PATCH 2/2] mingw: ensure temporary file handles are not inherited by child processes
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 22, 2016, 12:47 UTC
- Message-ID
- <alpine.DEB.2.20.1608221443170.4924@virtualbox>
- In-Reply-To
- <xmqqbn0o4uq2.fsf@gitster.mtv.corp.google.com>
Hi,
On Fri, 19 Aug 2016, Junio C Hamano wrote:
Show 8 quoted lines
> Eric Wong <e@80x24.org> writes: > > > I'd be more comfortable keeping the EINVAL check that got > > snipped in your reply. O_CLOEXEC can be defined to non-zero in > > new userspace headers, but an older kernel chokes on it with > > EINVAL. > > Good point. Thanks.
I tried to accomodate both of your suggestions by defining O_CLOEXEC in git-compat-util.h unless defined earlier, and by handling EINVAL via dropping O_CLOEXEC in a second call to open(). Please inspect the interdiff of the upcoming iteration.
Ciao, Dscho