From 17c72f591fad63102740cf588642bbb653ae23e5 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 8 Dec 2014 21:40:48 -0800 Subject: [PATCH] ceph-osd: remove extra close of stderr Otherwise, one loses log messages when running with -f or -d. When daemonizing, stderr is already closed in global_init_postfork_finish. Fixes: #10010, #10113, #9810 Signed-off-by: Dan Mick --- src/ceph_osd.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index a6228d442a6..6b10fbce7e0 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -506,9 +506,6 @@ int main(int argc, const char **argv) return 1; } - // Now close the standard file descriptors - global_init_shutdown_stderr(g_ceph_context); - ms_public->start(); ms_hbclient->start(); ms_hb_front_server->start();