From cbf18b1d80d214e4203e88637acf4b0a0a201ee7 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 6 Dec 2016 15:07:19 -0800 Subject: [PATCH] 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 --- src/ceph_fuse.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index 8bd841be2af..d6983d932e9 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]);