There is no strightforward way to exit the main loop
assafnativ opened this issue · 1 comments
assafnativ commented
The fuse API fuse_exit
is not wrapped and becuase of that there is no correct way to exit the main loop and move on to the teadown.
There is code at the end of Fuse_main that calls fuse_teardown
but it seems like there is no way to get there.
Wrapping the fuse_exit
API is required to fix this issue.
Pandapip1 commented
The best way I've found is to use the fusermount -u <path>
command. Definitely not ideal - maybe it's possible to run the real 'main loop' in a seperate thread and hackily call fusermount -u
when ctrl+C is pressed?