]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
global: fix incorrect CINIT flag.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 30 Apr 2012 21:10:35 +0000 (14:10 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 30 Apr 2012 21:10:35 +0000 (14:10 -0700)
There is nobody responding to CLOSE_STDERR, but this block sure looks
like it should be doing so. Fix that!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/global/global_init.cc

index 90c1edc04511a84eff7523b5a453677203517f47..84644a6d91b69c3db80b421c6c4937df4b2f4dac 100644 (file)
@@ -183,7 +183,7 @@ void global_init_daemonize(CephContext *cct, int flags)
         << err << dendl;
     exit(1);
   }
-  if (!(flags & CINIT_FLAG_NO_DEFAULT_CONFIG_FILE)) {
+  if (!(flags & CINIT_FLAG_NO_CLOSE_STDERR)) {
     ret = global_init_shutdown_stderr(cct);
     if (ret) {
       derr << "global_init_daemonize: global_init_shutdown_stderr failed with "