Windows mutex to prevent multiple instances
neaesten at myrealbox.com
Thu Aug 29 02:53:05 CEST 2002
Hans Nowak wrote:
> Samuel Bronson wrote:
>> Use a lock file, you could call it 'myapp.pid' and put the pid of
>> your app in it so it can serve double-duty.
> We considered using a file to mark that the program is running, but
> dismissed the idea because of the problems this method caused in other
> apps we've seen... file doesn't get deleted, etc.
Perhaps the 'atexit' module would be helpfull?
More information about the Python-list