Thread
:
How to forbid multi-running an application?
View Single Post
Joorin
2010-05-31 , 11:35
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#
2
This is typically done using lock files. The directory /var/run can be used. Or /tmp for lock files that should not survive a reboot.
As far as I know, there are POSIX defined functions to handle this. Depending on your framework, there might be implementations there too.
You could use gconf for ease of use but then you must take into account that it might not be thread safe on the same level as files in the file system.
Quote & Reply
|
The Following User Says Thank You to Joorin For This Useful Post:
jarmniku
Joorin
View Public Profile
Send a private message to Joorin
Find all posts by Joorin