Server shutdown with Ctrl-C vs. Process
Hi,
I recently changed my server implementation to perform a network operation (unsubscribe from IceStorm) before shutting down. In my class derived from Ice::Application I re-implement the new interruptCallback() function to do this.
This works well when the application executes from the command line and is stopped with Ctrl-C.
I expected this to work similarly with IceGrid but it doesn't seem to. It looks like the communicator is destroyed right away. Is this to be expected? I couldn't find an explicit reference in the manual to what the ProcessI object does when shutdown() is called.
"When shutdown is invoked, the object implementing this interface is expected to initiate the termination of its server process." (28.18.4)
Thanks a lot, Alex
Alex Makarenko
Marathon Robotics
project: multi-robot systems