]> 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)
committershun-s <song.shun3@zte.com.cn>
Tue, 26 Jan 2016 07:14:54 +0000 (15:14 +0800)
commitf2c0ef40fd674fecc6e3e97cd6155b976e6759b4
treefd2eb88910edf63791b890d8d90c36e962345a75
parentdda9a083702e98e77794373f2057c191ce34f771
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>
src/global/global_init.cc
src/global/pidfile.cc
src/global/pidfile.h