zargony / fuse-rs

Rust library for filesystems in userspace (FUSE)
MIT License
1.07k stars 130 forks source link

how to handle interrupted while setlk #143

Open Sherlock-Holo opened 4 years ago

Sherlock-Holo commented 4 years ago

I read the doc but it doesn't mention how to handle interrupted when setlk is waiting.

If user try to setlk, but he waits for a long time, so he presses Ctrl+C and the fd is closed, how do I know this?