How do I force a single instance of a python app?
Joshua Muskovitz
josh at open.com
Wed Oct 25 15:25:15 EDT 2000
"Dale Strickland-Clark" <dale at out-think.NOSPAMco.uk> wrote in message
news:urodvssp7e7cmbv1ljlqnqgej9rjhfqbli at 4ax.com...
> Open a flag file exclusively for writing. If successful you are alone,
> if not, another instance already has the file.
>
> The OS should close the file and free the exclusive lock if the app
> crashes.
This would be great, but on my Win2k box, I can open up the same file for
write in two separate Python instances at the same time. :-(
The second instance of open("foo","w") does not fail.
-- josh
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list