I think this is answered here by the author of WinFSP
The proper way to unmount a file system that uses WinFsp-FUSE is by sending it a Ctrl-C. On Windows this is done by calling
GenerateConsoleCtrlEvent
. On Cygwin you can also usekill
orpkill
to send it aSIGTERM
, especially if you run it as a Cygwin daemon.