[Techtalk] Theory vs. practice
jenn at anthill.echidna.id.au
Wed Jan 16 19:35:57 EST 2002
On Wed, 2002-01-16 at 15:58, Jeff Dike wrote:
> jenn at anthill.echidna.id.au said:
> > Except that there -shouldn't- be a race condition, because the
> > conditional should be evaluated before the chown. If the conditional
> > hasn't been evaluated, the code doesn't know whether to do the chown
> > or not.
> The race is an outside process replacing the file between you doing the stat
> and doing the chown.
And now I've proven to the newbies that oldbies can miss things. :)
"Do you ever wonder if there's a whole section of geek culture
you miss out on by being a geek?" - Dancer.
jenn at anthill.echidna.id.au http://anthill.echidna.id.au/~jenn/
More information about the Techtalk