Path: utzoo!attcan!uunet!nexus!mike From: mike@nexus.UU.NET (Mike Hickey) Newsgroups: gnu.emacs.bug,comp.emacs Subject: Eternally paused on return from shell Keywords: flow control Message-ID: <149@nexus.UU.NET> Date: 18 May 88 18:53:35 GMT Organization: Nexus Inc., Washington DC Lines: 23 Version: 18.50 Machine: NCR Tower 32-400 OS: NCR UNIX Rel. 1.03 Symptom: After doing a suspend-emacs, when at the shell prompt a ^S is entered followed by ^D, emacs will hang forever. Problem: The child shell has exited while in a paused state. Emacs can't do any output because the tty driver is waiting to see a resume-output. Since emacs happily uses ^Q, the driver is never satisfied. Solution: For the Tower (and others that have TCXONC), adding the line ioctl(0, TCXONC, 1) in sysdep.c in init_sys_modes will continue any suspended I/O. This is highly preferable to using set-input-mode. /mike