Skip to content

Commit

Permalink
Merge pull request #6996 from H3C/wip-mds-f11322
Browse files Browse the repository at this point in the history
mds: we should wait messenger when MDSDaemon suicide

Reviewed-by: John Spray <john.spray@redhat.com>
  • Loading branch information
John Spray committed Dec 23, 2015
2 parents e0833f2 + fff4941 commit 0c17b61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ceph_mds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ int main(int argc, const char **argv)
r = mds->init(shadow);
else
r = mds->init();
if (r < 0)
if (r < 0) {
msgr->wait();
goto shutdown;
}

// set up signal handlers, now that we've daemonized/forked.
init_async_signal_handler();
Expand Down

0 comments on commit 0c17b61

Please sign in to comment.