I'm developing with vi over ssh.
My problem is that sometimes I get my ssh connection killed because of my poor wifi connection and previous processes (like "top", "rails c", etc...) are not being killed properly.
So after a little while, i get those processes at 100% of the CPU usage (i don't really know why), and I need to kill them manually.
Because I'm not the only developer, it can get really messy so my boss asked me to come up with a solution.
How would i do this?