BTW, I think this behaviour is very OS dependant
In reply to Re^3: Fork + Flock = Who Gets the Lock? by salva in thread Fork + Flock = Who Gets the Lock? by Anonymous Monk