Archived

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

Threads and Shutdown

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

  • benoit
    benoit Rennes, France
    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.