[Techtalk] Theory vs. practice

Jeff Dike jdike at karaya.com
Wed Jan 16 00:58:00 EST 2002

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.


More information about the Techtalk mailing list