Windows mutex to prevent multiple instances

Samuel Bronson neaesten at myrealbox.com
Wed Aug 28 20:53:05 EDT 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?
--SamB




More information about the Python-list mailing list