# File lib/rfusefs.rb, line 94 def FuseFS.unmount(mountpoint=nil) if (mountpoint) if @mounts.has_key?(mountpoint) pid = @mounts[mountpoint] Process.kill("TERM",pid) Process.waitpid(pid) else raise "Unknown mountpoint #{mountpoint}" end else #Local unmount, make sure we only try to unmount once if @fuse && @fuse.mounted? print "Unmounting #{@fuse.mountname}\n" @fuse.unmount() end @fuse = nil end end