Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!IMA.IMA.ISC.COM!ima!ima!karl From: ima!ima!karl@IMA.IMA.ISC.COM (Karl Heuer) Newsgroups: gnu.emacs.bug Subject: process exits without completing output Message-ID: <8912010138.AA02371@haddock.IMA.ISC.COM> Date: 1 Dec 89 01:38:11 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 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 Brought to you by Super Global Mega Corp .com