Comment 2 for bug 786730

100% reliable method of reproducing on my 10.4 machine:

1) ssh to localhost
2) start emacs
3) Control-Z
4) Enter, tilde, period (to kill the SSH session)
5) emacs starts spinning and eating memory

emacs bug reports:
http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=4970
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7951

The fix was included in 23.2a, but the patch applies cleanly to 23.1 as well.
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-23&id=1857569af70493e9dcd446c8bfb029096b355593