Archived

This forum has been archived. Please start a new discussion on GitHub.

Application Helper class and shutdown behavior

Hi ZeroC guys,

I just wanted to make a comment that the Ice documentation seems to be out of sync on page 294 of the manual.

<quote>
• shutdownOnInterrupt
This function creates an IceUtil::CtrlCHandler that cleanly shuts
down your application. This is the default behavior.
</quote>

If I am reading the source correctly (and not doing something else wrong). destroyOnInterrupt is instead the default behavior which is also undocumented. Easy fix of course placing:

Ice::Application::shutdownOnInterrupt();

before:

communicator()->waitForShutdown();

It just took us a while to figure that out since we sort of were expecting that as the default.

Regards,
Ryan Fogarty

Comments

  • mes
    mes California
    Hi Ryan,

    Thanks for reporting this, we'll correct the manual to reflect the code.

    Take care,
    - Mark
  • Great, thanks!

    Regards,
    Ryan

    P.S. Happily running ICE 2.0 by the way. It just keeps getting better!