Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no strightforward way to exit the main loop #45

Open
assafnativ opened this issue May 17, 2022 · 1 comment
Open

There is no strightforward way to exit the main loop #45

assafnativ opened this issue May 17, 2022 · 1 comment

Comments

@assafnativ
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants