]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrStandby: exit with 0 result code, as if we'd done an orderly shutdown 26877/head
authorSage Weil <sage@redhat.com>
Sun, 10 Mar 2019 15:48:21 +0000 (10:48 -0500)
committerSage Weil <sage@redhat.com>
Mon, 11 Mar 2019 12:50:31 +0000 (07:50 -0500)
This matches the prior behavior with shutdown().  It also makes
teuthology happy.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/MgrStandby.cc

index bf6dc65f68dc083cd5603c6de60ef1a8c5f879d8..ee246b8cbf6ea9e4f0d125ac3e45449e12225ffd 100644 (file)
@@ -264,7 +264,7 @@ void MgrStandby::handle_signal(int signum)
 {
   ceph_assert(signum == SIGINT || signum == SIGTERM);
   derr << "*** Got signal " << sig_str(signum) << " ***" << dendl;
-  _exit(128 + signum);
+  _exit(0);  // exit with 0 result code, as if we had done an orderly shutdown
   //shutdown();
 }