• anozdrin/alik@alik.'s avatar
    Fix for BUG#17486: IM: race condition on exit. · f40a9d2e
    anozdrin/alik@alik. authored
    The problem was that IM stoped guarded instances on shutdown,
    but didn't wait for them to stop.
    
    The fix is to wait for guarded instances to stop before exitting
    from the main thread.
    
    The idea is that Instance-monitoring thread should add itself
    to Thread_registry so that it will be taken into account on shutdown.
    However, Thread_registry should not signal it on shutdown in order to
    not interrupt wait()/waitpid().
    f40a9d2e
instance.cc 18.6 KB