]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_fuse: fix daemonization when pid file is non-empty 13532/head
authorYan, Zheng <zyan@redhat.com>
Mon, 20 Feb 2017 07:39:08 +0000 (15:39 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 23 Feb 2017 07:28:20 +0000 (15:28 +0800)
commit64a0e1401f2578b6a2ff958d6782c41e3ea847c8
treec6a13c2ffe413739b84a24cba3a2c31d5436926a
parent0f9c15e32daf0a5d13b7e7cc53fa250948c34b6e
ceph_fuse: fix daemonization when pid file is non-empty

During daemonizing ceph-fuse, both the parent and child processes call
global_init_postfork_start(). global_init_postfork_start() calls
pidfile_write(). If pid file is non-empty, one pidfile_write() call
fails because it can't lock the pid file.

The fix is only child process calls global_init_postfork_start()

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/ceph_fuse.cc