From: Sage Weil Date: Tue, 19 Jun 2012 17:11:01 +0000 (-0700) Subject: osd: close stderr on daemonize X-Git-Tag: v0.48argonaut~38 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=74658dfa2f7a7c904232937f6b9ad11135691e3b;p=ceph.git osd: close stderr on daemonize This spams stderr in an ugly way. Users should look at the logs. In particular, filestore upgrades spam the console, which is unpleasant. Signed-off-by: Sage Weil --- diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index dc4e13f1958..afb3d02e53c 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -393,9 +393,9 @@ int main(int argc, const char **argv) if (r < 0) exit(1); + // Set up crypto, daemonize, etc. - // Leave stderr open in case we need to report errors. - global_init_daemonize(g_ceph_context, CINIT_FLAG_NO_CLOSE_STDERR); + global_init_daemonize(g_ceph_context, 0); common_init_finish(g_ceph_context); if (g_conf->filestore_update_to >= (int)FileStore::on_disk_version) {