...
as i understand, i can have it in a loop and it can respond listen to
TCP sockets (i didn't try it yet, the program is still a GUI program).
but i was asking me how can i tell the running program to quit
gracefully?
i thought about implementing a special command from over TCP also,
but i do think this is not very secure. i only want to allow to quit
from the same computer.
solution should run cross-platform.
...
The correct solution under Unix (which covers Apple and Linux) is to
use a signal for this.
kill <process id>
Sends a "kill" signal to the process. The process should accept the
signal and gracefully exit.
Also, doing:
kill -1 <process id>
Should cause the process to gracefully rescan/reload all configuration
files, but without actually interrupting service.
I don't know how you'd program this in RB and how this would work
under Windows.
Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>