python-fuse icon indicating copy to clipboard operation
python-fuse copied to clipboard

There is no strightforward way to exit the main loop

Open assafnativ opened this issue 3 years ago • 2 comments

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.

assafnativ avatar May 17 '22 15:05 assafnativ

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?

Pandapip1 avatar Oct 20 '23 14:10 Pandapip1