This is the mail archive of the cygwin-developers@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: snapshot 20050114 race (on list)



Christopher Faylor wrote:

> I also don't see how there can be a race between setting PID_ZOMBIE and
> PID_EXITED.  PID_ZOMBIE is only set when a child has either already set
> PID_EXITED or the child has exited.

OK. Let me look more.

> I don't understand the other race either.  Theoretically cygwin has
> closed all handles by the time it has hit pinfo::exit.  If there are
> still open handles that would indicate a handle leak somewhere, it
> seems.

Sorry I wasn't clearer. I was wondering if "touch"
might still be lurking.
A conclusive test would be to see if this fails too.

#! /bin/sh
pwd=`pwd`
tmp=race.$$
trap 'cd $pwd; rm -rf $tmp' 0
mkdir $tmp
mkdir $tmp/d
touch $tmp/f $tmp/f2 $tmp/d/f3
cd $tmp
#do tests on chgrp $tmp
exit 0


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