snapshot 20050114 race (on list)

Pierre A. Humblet pierre.humblet@ieee.org
Fri Jan 14 19:13:00 GMT 2005



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



More information about the Cygwin-developers mailing list