[Gambas-user] Send a signal do a PID. Is it possible?
Andre Saccomani
andre.gambas at ...626...
Wed Nov 16 23:50:38 CET 2005
i
Is there anyway to send a signal to a linux PID? and if so, is there a way
to catch these signals in a gambas application? So when I try to open a
second instance of my program, it would check if is there one already
running and then it could send a signal to the first instance before exit.
This signal would cause my program (the first instance) do do a dlgMain.Show,
or something like this. restoring it from tray.
Hi,
I would like to make a software that allows only one instance of it running
at same time. So when someone try to open a second instance of the program,
it would look if there is one already running, and if there is, I would like
to make this second instance to exit.
But before exit, I want it to send a message to the first instance. Is there
anyway to do that? send a message to a program by having its PID?
If possible, how can I send a message to a PID and how do I handle received
messages?
Thanks in advance,
Andre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051116/bb67999b/attachment.html>
More information about the User
mailing list