>>>>> "M" == Michael Witrant <mike / lepton.fr> writes: M> I made a simplier script to test it. I think this use of flock is valid M> and should not block all threads (other threads not concerned by the M> lock are also blocked). Well, flock is not thread safe. Guy Decoux