Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph-fuse: start up log on parent process before shutdown
in this change we use global_init_postfork_start() to restart the log after it is stopped by Preforker, otherwise, we hit an assert in the Ceph context and logging teardown. * 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. Fixes: http://tracker.ceph.com/issues/18157 Signed-off-by: Kefu Chai <kchai@redhat.com>
- Loading branch information
Showing
3 changed files
with
29 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters