8000 There is no strightforward way to exit the main loop · Issue #45 · libfuse/python-fuse · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and cont 8000 act 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

Open
assafnativ opened this issue May 17, 2022 · 2 comments
Open

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

assafnativ opened this issue May 17, 2022 · 2 comments

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?

@cmcqueen
Copy link

In C code using libfuse, I can set up signals so that my FUSE program ends cleanly when I press Ctrl-C or send it SIGTERM. This is functionality python-fuse users would want.

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

4 participants
0