mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
1c31dbb822
Summary: Previously if you `sudo umount -f fbsource-nfs` then try to `eden mount fbsource-nfs`, the mount will fail because the EdenMount already exists and is still running. Let's properly unmount our selfs on a force unmount like we do for fuse. There are two potential ways to detect a fource unmount: the UMNT call to the mount deamon or the socket to the nfsd closing. The UMNT call is unreliable (on Linux we do not get the UNMT call on `umount -l`), so this diff pursues the socket closing option. When the nfsd socket is closed we trigger the EdenMount unmounting process if this has not already started. Reviewed By: xavierd Differential Revision: D28329482 fbshipit-source-id: 5df8f3eb818a92536095195f1b3a9e412394fbf6 |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
Rpc.cpp | ||
Rpc.h | ||
Server.cpp | ||
Server.h | ||
StreamClient.cpp | ||
StreamClient.h |