in reply to Re^2: Fork + Flock = Who Gets the Lock?
in thread Fork + Flock = Who Gets the Lock?
well, this way, the programmer can decide where he wants to use the lock, on the parent or on the child, and just close the file on the other process (or not use it at all).