[gnu.emacs.bug] process exits without completing output

karl@IMA.IMA.ISC.COM (Karl Heuer) (12/01/89)

In GNU Emacs 18.41.17 of Wed Aug 30 1989 on kelp (usg-unix-v)
compiled without pty support (i.e. processes use pipes),
when using the remote.el package by raible@orville.nas.nasa.gov
(version 3.12) as obtained from orville.nas.nasa.gov:~ftp/remote.el,
I would get an error about the undefined variable remote-directory-output.
A debug trace revealed that it was being used by remote-directory-filter,
a process filter which expects to be invoked only during the scope of this
variable.  Further tracing within remote-process-wait revealed that, even
after (process-status proc) has the value 'exit, it's possible that there is
still some uncollected output from the process which will remain until the
next sleep.  Adding an explicit call to (accept-process-output) seems to fix
the problem (and I've told raible to make this change), but it seems to me
that emacs probably ought to automatically do this at the time that it sets
the process-status to 'exit.

Karl Heuer