From: Greg Farnum Date: Tue, 6 Dec 2016 23:07:19 +0000 (-0800) Subject: ceph-fuse: start up log on parent process before shutdown X-Git-Tag: v11.1.0~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12347%2Fhead;p=ceph.git ceph-fuse: start up log on parent process before shutdown Otherwise, we hit an assert in the Ceph context and logging teardown. Fixes: http://tracker.ceph.com/issues/18157 Signed-off-by: Greg Farnum --- diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index 8bd841be2af2..d6983d932e96 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -295,6 +295,8 @@ int main(int argc, const char **argv, const char *envp[]) { //cout << "child done" << std::endl; return r; } else { + if (restart_log) + g_ceph_context->_log->start(); // i am the parent //cout << "parent, waiting for signal" << std::endl; ::close(fd[1]);