Allowing only one instance of a script?

Grant Edwards grante at visi.com
Thu Jun 23 18:33:38 EDT 2005


On 2005-06-23, Aahz <aahz at pythoncraft.com> wrote:
> In article <11bljh588m0r89c at corp.supernews.com>,
> Grant Edwards  <grante at visi.com> wrote:
>>
>>Both open() and link() are atomic operations, so there's no
>>race condition.
>
> ...unless you're running under NFS.

I think read somewhere than NFS 3 handles the open with
CREAT+EXCL in an atomic manner (older versions didn't). I don't
know about link.

-- 
Grant Edwards                   grante             Yow!  Will it improve my
                                  at               CASH FLOW?
                               visi.com            



More information about the Python-list mailing list