From 3242b2b5629b951acfe90011a3c07533db1ab0a3 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 (cherry picked from commit cbf18b1d80d214e4203e88637acf4b0a0a201ee7) --- src/ceph_fuse.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index e8d57c74f6a97..d2baa9606f21e 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -297,6 +297,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]); -- 2.39.5