When I mount sftp/ftp, and connection breaks for a while, the mount "freezes" and will freeze any process that deals with it (the editor, Nautilus, umount, etc). I can't even unmount the folder. (My system is Ubuntu 9.10)
What's the way to edit files on that sftp/ftp folder without mounting it, in order to avoid these freezes?
A more detailed explanation:
I work as a web programmer, and have to edit a lot of files on a commercial web hosting. I sshfs (mount) an sftp folder to /media/project1 and edit files there. Our corporate LAN uses ADSL which disconnects briefly every half an hour (I don't notice that, but my sshfs does). After a disconnect, web borwsers work fine, but /media/project1 is not accessible. Any process that touches /media/project1 after that, becomes Uninterruptible, hence killall, kill -9 PID have no effect for 5-15 minutes.
When this happens, my editor freezes, I can't edit anything, nor can unmount the folder. I could run another instance of the editor, mount the sftp in yet another folder, but this is labor- and memory-intensive.
I'll appreciate any ideas to avoid this.