I have several directories mounted through sshfs. I sometimes get disconnects from the server (not configurable by me). I usually mount the directories like thissshfs user@server.example.com:/home/user /mnt/exampleWhen a server disconnects, the sshfs subsystem doesn't umount / free the directory but instead locks it inaccessible. The mount is still visible when typing mount. When I typels /mnt/examplethe process gets locked (also Ctrl+c doesn't help). I therefore dosudo umount -l /mnt/example# find pid of corresponding process:ps aux | grep example.comkill -9 <pid of locked sshfs process>Is there a better way to deal with this? Obviously sshfs should do the umount and clean up... Ideally it would reconnect automatically. 
What is a better way to deal with server disconnects of sshfs mounts?
ssh;mount;sshfs
You can run sshfs with the reconnect option. We use sshfs with PAM/automount to share server files for each workstation in our network. We use -o reconnect as parameter for sshfs, mostly because our users suspended their computers and on wake sshfs would not reconnect (or respond, or anything).For example:sshfs mvaldez@192.168.128.1:/home/mvaldez/REMOTE /home/mvaldez/RemoteDocs -o reconnect,idmap=user,password_stdin,dev,suidJust a note, if the remote computer is really down, sshfs may become unresponsive for a long time.