]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
global_init: do not count threads before daemonize()
authorSage Weil <sage.weil@dreamhost.com>
Fri, 4 May 2012 01:50:42 +0000 (18:50 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 4 May 2012 03:00:36 +0000 (20:00 -0700)
commite50932c2043bad110d6f00b416d1d960333e9283
tree7461c3aabbe9a307e6c420cc6f453272f38c207d
parent27d98d24194545a485aff1e94592c1bd45f6c2a2
global_init: do not count threads before daemonize()

We were verifying that there was only 1 thread (the presumably main()) when
we call daemonize.  However, with the new logging code, we stop a thread
right before the check, and /proc apparently updates asynchronously such
that our attempt to count running threads gives us a bad answer.

Just remove this kludgey check; we'll have to catch this class of bugs
the hard way.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/global/global_init.cc