Hi Vladimír, > I still don't see how hardlinking can lock a file, but never mind :-) link(2) is an atomic operation that fails with EEXIST if the target path exists already. If several processes call link("foo", "foo.lck") at the same time, then only one of them will succeed. Take care, Peter