bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: login shell crash on Mac OS X while closing file descriptors


From: Rainer Müller
Subject: Re: login shell crash on Mac OS X while closing file descriptors
Date: Thu, 26 Aug 2010 04:16:45 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Mnenhy/0.8.3 Thunderbird/3.1.2

On 2010-08-24 15:59 , Chet Ramey wrote:
> Well, if they cause bash to crash, I suppose removing that code (or
> removing the #define) is a good place to start.
> 
> That code has been there for a very long time.  Maybe if you changed it
> to turn on the FD_CLOEXEC bit instead of closing the fd we could solve
> the problem.  There is a SET_CLOSE_ON_EXEC(fd) macro you can use to do
> that.

I now applied a patch locally which replaces close() with
SET_CLOSE_ONEXEC(). Resolves the problem for me and is probably a better
solution than removing the code completely.

Thanks,
Rainer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]