From 29baf254d72cc593572b5a6215360ba51e3be198 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 29 Nov 2016 12:36:00 -0500 Subject: [PATCH] rbd-nbd: restart parent process logger after forking Fixes: http://tracker.ceph.com/issues/18070 Signed-off-by: Jason Dillaman --- src/tools/rbd_nbd/rbd-nbd.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/rbd_nbd/rbd-nbd.cc b/src/tools/rbd_nbd/rbd-nbd.cc index 029d21656c8be..2caa1430e5bfc 100644 --- a/src/tools/rbd_nbd/rbd-nbd.cc +++ b/src/tools/rbd_nbd/rbd-nbd.cc @@ -493,8 +493,9 @@ static int do_map() } if (forker.is_parent()) { + global_init_postfork_start(g_ceph_context); if (forker.parent_wait(err) != 0) { - return -ENXIO; + return -ENXIO; } return 0; } -- 2.39.5