[omniORB] termination of orb->run()
Duncan Grisby
dgrisby@uk.research.att.com
Mon, 02 Jul 2001 09:53:40 +0100
On Friday 29 June, Jian Deng wrote:
> it seems to me that, in echo examples, the impl code exits inside
> orb->run() upon getting SIGTERM or SIGINT. just wondering how could
> anything be done after the line,
>
> ...
> orb->run();
>
> to perform chores such as calling destructors and cleaning up.
orb->run() exits when orb->shutdown() is called. You can do clean-up
after that.
If you want to do something after the user has hit ctrl-c, you'll have
to register a signal handler for your process.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --