Thread
:
How to forbid multi-running an application?
View Single Post
jarmniku
2010-05-31 , 12:28
Posts: 13 | Thanked: 0 times | Joined on May 2010
#
9
In fact, lock file isn't very good: if the program is killed before it exits voluntarily, the lock file may not be deleted. That forbids the program to start any more!
Better way would be to examine process list and check if the binary is already running. How to do that, then?
Quote & Reply
|
jarmniku
View Public Profile
Send a private message to jarmniku
Find all posts by jarmniku