This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch]: secret event


On Fri, Jan 23, 2004 at 11:04:05AM -0500, Pierre A. Humblet wrote:
>
>Christopher Faylor wrote:
>> 
>> 
>> I agree, with one nit.  Was there a reason for getting rid of the handle
>> protection in this patch?  We are apparently stumbling over a problem with
>> handle corruption in the current CVS so removing a chance for protection
>> seems like we're going backwards.
>
>The previous code was assuming that a handle would never change from
>inheritable to non-inheritable (or conversely) and was protecting it
>accordingly.
>That's not true anymore and I don't know how to protect in that situation.

Ah, of course.  I should have realized that.  I make similar tradeoffs in
the tty stuff for similar reasons.

Well, Volker's problem is confirmed as some strange handle corruption.
I always seem to be poised at the uncertain cusp of thinking that the
handle protection code is stupid and should be removed, and thinking
that it is useful and should be augmented...

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]