]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
global/pidfile: do not start two daemons with a single pid-file
authorshun-s <songshun134@126.com>
Wed, 2 Dec 2015 02:36:35 +0000 (10:36 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 14:26:43 +0000 (22:26 +0800)
commitcf433bac5b7bc6bdbb6fac56c420288544c79ef5
tree8f6b0bae2170e3ea7718d97dac3446c622de8947
parente34c2094ef44e6e52896820f4dd90a1c5d5bbfe8
global/pidfile: do not start two daemons with a single pid-file

add functions named pidfile_open and pidfile_verify to avoid starting two daemons by a single pid-file

Fixes: #13422
Signed-off-by: shun song <song.shun3@zte.com.cn>
(cherry picked from commit f2c0ef40fd674fecc6e3e97cd6155b976e6759b4)
src/global/global_init.cc
src/global/pidfile.cc
src/global/pidfile.h