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

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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!
Sign In or Register to comment.