60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/~perl2/bare/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator 961 http://perlmonks.org/ 20260409063626 Thu Apr 9 06:36:26 2026 30 Thu Apr 9 06:36:26 2026 rss,clean PerlMonks Anonymous Monk 2026-04-09 16:36:26 Re^2: NFS File Locking Fletch http://perlmonks.org/~perl2/bare/index.pl?node_id=11167514 Prossibly completely irrelevant, but: I want to say that folk wisdom was to use a directory as lock when attempting to do any sort of locking over NFS as operations on those were a bit more robus... note Thu, 09 Apr 2026 14:03:27 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167514 11167514 58196 2026-04-09 10:03:27 Fletch Re: NFS File Locking hippo http://perlmonks.org/~perl2/bare/index.pl?node_id=11167513 I am wondering if this is a known problem and if there is a preferred way to work around this. The workaround (in the scenario where you are unlinking a worked-... note Thu, 09 Apr 2026 13:32:50 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167513 11167513 885521 2026-04-09 09:32:50 hippo Re^2: NFS File Locking Corion http://perlmonks.org/~perl2/bare/index.pl?node_id=11167512 In principle yes, but I'm not sure that rename is atomic on NFS. <a href="https://stackoverflow.com/questions/41362016/rename-atomicity-and-nfs">Stackoverflow claims it isn't</a>, and also opening-and-r... note Thu, 09 Apr 2026 11:57:59 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167512 11167512 5348 2026-04-09 07:57:59 Corion Re: NFS File Locking duelafn http://perlmonks.org/~perl2/bare/index.pl?node_id=11167511 If you unlink after opening but before before processing that would reduce the race window. On a local filesystem that fully removes the file from the directory listing, but as I understand it, ove... note Thu, 09 Apr 2026 11:48:54 +0000 http://perlmonks.org/~perl2/bare/index.pl?node_id=11167511 11167511 53268 2026-04-09 07:48:54 duelafn