In
3d360b97ed7dead8e9a5f602cfaf61ab7b41e531 a signal handler was added to
shut down modules and associated clients cleanly, but the standby case
was left ignoring the signal completely.
Fixes: https://tracker.ceph.com/issues/42744
Signed-off-by: Sage Weil <sage@redhat.com>
void Mgr::handle_signal(int signum)
{
ceph_assert(signum == SIGINT || signum == SIGTERM);
- derr << "*** Got signal " << sig_str(signum) << " ***" << dendl;
shutdown();
- _exit(0); // exit with 0 result code, as if we had done an orderly shutdown
}
// A reference for use by the signal handler
static void handle_mgr_signal(int signum)
{
+ derr << " *** Got signal " << sig_str(signum) << " ***" << dendl;
if (signal_mgr) {
signal_mgr->handle_signal(signum);
}
+ _exit(0); // exit with 0 result code, as if we had done an orderly shutdown
}
void Mgr::init()