I often forget to close vi after editing some files, and logoff.
Since ash doesn't send $whatever signal to kill running processes when i log off, vi keeps running. The problem is that as soon as i have logged off, vi goes crazy and monopolizes all the cpu, which causes the router to crawl.
I suppose it isn't a problem if you logoff via the exit command since ash will refuse to do so if there are running processes, but i use putty so i regulary forget to kill those running jobs before logging off and my colo users yell at me because "i've messed something with the router again" =/
So, is there an easy way to either :
- have ash send the appropriate signal ?
- do something about busybox vi so it doesn't behave like that ?
- find if some vi processes are running and nobody is logged in to kill them ?
I was about to write a little script to do that but noticed that "who" is not there... any idea on how to find if there are some users logged without it ??
btw i have this vi behaviour on wrt54g v1.0 and 3.2 , with openwrt rc3 and rc4