]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: rewrite the fork hackery using Prefork 12358/head
authorKefu Chai <kchai@redhat.com>
Wed, 7 Dec 2016 06:29:58 +0000 (14:29 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 8 Dec 2016 02:26:06 +0000 (10:26 +0800)
commit83aaa55d0b9d7e7634d1d3281ddc30b3b90d3ba1
tree643b8d5e3b59e60eb111d08bf5679a18409c94e5
parent96cf8a1b2878d56c5e5d7cecbfd9e776871766b7
ceph-fuse: rewrite the fork hackery using Prefork

in this change we use global_init_postfork_start() to restart the
log after it is stopped by Preforker.

* ceph_fuse.c:
   - rewrite the fork hackery using Preforker helper class
   - write "starting ceph client" message to cerr, as the cout was
     closed
     by global_init_postfork_start()
* fuse_ll.cc: write -1 to signal the parent process that init is
  done.
* Preforker.h: add a helper method to return the fd to which, the
  child process can write an int to notify its status.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph_fuse.cc
src/client/fuse_ll.cc
src/common/Preforker.h