in reply to Re: Fork + Flock = Who Gets the Lock?in thread Fork + Flock = Who Gets the Lock?
To make flock non blocking you have to use the LOCK_NB flag.