RE: Check for instances running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This should be a Unix question, I don't know how to do this, but maybe
you can use Mutex to do this.
>man mutex
will give you detail information.



-----Original Message-----
From: gtk-list-admin@xxxxxxxxx [mailto:gtk-list-admin@xxxxxxxxx] On
Behalf Of Joao Rainha
Sent: Thursday, October 30, 2003 12:47 PM
To: gtk-list@xxxxxxxxx
Subject: Check for instances running

Hi!

I want to check if there's other instances of a GTK program running.

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?

Thanks


-- 
Regards,

João Rainha
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux