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

Ctrl-C to umount #2

Open
wade-fs opened this issue Jun 10, 2020 · 0 comments
Open

Ctrl-C to umount #2

wade-fs opened this issue Jun 10, 2020 · 0 comments

Comments

@wade-fs
Copy link

wade-fs commented Jun 10, 2020

I met the Ctrl-C to zipfs will cause manual umount.
Please add the following after mountpoint := flag.Arg(1)

cc := make(chan os.Signal, 1)
signal.Notify(cc, os.Interrupt)
go func(){
    for range cc {
        fuse.Unmount(mountpoint)
    }
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant