]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: close stderr on daemonize
authorSage Weil <sage@inktank.com>
Tue, 19 Jun 2012 17:11:01 +0000 (10:11 -0700)
committerSage Weil <sage@inktank.com>
Tue, 19 Jun 2012 17:11:01 +0000 (10:11 -0700)
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 <sage@inktank.com>
src/ceph_osd.cc

index dc4e13f1958d7a9914a1545898372ec326e85222..afb3d02e53cd24bac6266814830234d090f0f878 100644 (file)
@@ -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) {