On Sep 24, Gunther Birznieks wrote:
> The PerlCookbook seemed to indicate that mkdir is an atomic operation (both 
> checks if the directory exists and creates it if it does not), so a locking 
> mechanism based on mkdir would take care of this issue 
> presumably.  Removing the lock is a matter of removing the directory.
> 
> However, (maybe this is right ... i dont have it here with me), the 
> PerlCookbook was saying this within the context of an NFS locking mechanism 
> I think. So, if mkdir is not truly atomic under Perl's implementation for 
> Win32 then that would screw that over. Would anyone here know off the top 
> of their head?

be careful, mkdir isn't really atomic under nfs.

jim

Reply via email to