Re: Check for instances running
- From: Christer Palm <palm nogui se>
- To: jrainha olivia inesc-id pt
- Cc: gtk-list gnome org
- Subject: Re: Check for instances running
- Date: Thu, 30 Oct 2003 22:42:04 +0100
Joao Rainha wrote:
I'm doing a kind of a lock file, where i keep the process pid, and at the
beginning of the program, i check i the file exist and if the pid is a valid
process.
Is this the best way to do it?
Are there any better method, like specific gtk or glib functions?
You also need to keep the client/server nature of X in mind. You may
have several instances running on the same display but on different
hosts, and/or several instances running on the same host but on
different displays.
--
Christer Palm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]