What's the best way for a program to insure that only a single instance of itself is running? I am thinking of following the apache-esque model, where the program writes its pid to a file:
Is this the right idiom?
Will I encounter permission issues on checking PIDs if the program is run from different users and groups?
Thanks for any advice
In reply to only allow single instance of program running by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |