Home Help Center

Threads and Shutdown

acbellacbell Member Andrew BellOrganization: Iowa State UniversityProject: National Resources Inventory ✭✭
Hi,

I have an Ice::Application with the default CtrlCHandler. I create some IceUtil::Threads, which are running at the time that the application receives the SIGINT signal. I know that the CtrlCHandler will destroy the communicator, but the threads that were created separately also seem to be destroyed. Can someone explain the mechanism for shutting down threads not in the client or server thread pool on SIGINT?

Thanks,

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Andrew,

    By default Ice::Application destroys the communicator when Ctrl-C is hit and it shouldn't destroy your own threads. Do you perhaps have a small test case that demonstrates this? Also, please specify the operating system and Ice version you're using.

    Cheers,
    Benoit.
Sign In or Register to comment.