|
From: Hans B. <han...@gm...> - 2011-06-13 22:05:51
|
I stumbled into a design issue that forces me to leave the basic fuse_main() approach and instead take the long turn using fuse_new() etc. The problem I then got into is that eg. SIGTERM does not automatically unmount my fs and I can not figure out how to register a exit handler. To be able to umount the fs both mount point and channel is needed. How can I easily register a exit handler that can pick up the data needed for me to call fuse_unmount() and fuse_exit() ? Also, is it enough to call fuse_unmount() and fuse_destroy() or should I use fuse_teardown() instead? I tried to use fuse_set_signal_handlers() but that just made things worse :( Then I could not even break out of the foreground process using CTRL-C. Hans |