multiple instance on Unix

Nigel King nigel.king at
Wed Sep 29 19:38:06 CEST 2004

I have (my son has!) implemented protection against multiple instances 
causing havoc by creating a directory. This fails if it exists and thus 
in a single instruction one gets both the acquire and the test.

Windows has it's mutex which solves the problem. Is there any better 
version for UNIX.


Nigel King

More information about the Python-list mailing list