🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99022

start-process bug/misfeature

#99022
From: Eliot Moss
Date: Thu, 03 Jan 1991 15:52
23 lines
1838 bytes
Well, thsi does not qualify as a bug in the sense of something not acting as
advertised, but it is a problem that should perhaps be addressed. The Emacs
built-in function start-process allows one to set many options, but setting
the process filter is not one of them. This means that there is a race
condition between starting the process and setting a filter on it. This does
not matter much for some processes (e.g., loadst, since it will produce output
again after a while if you wait) but it matters greatly for others (e.g.,
invoking hostname to get the current host's name). Granted, there *are* kludgy
workarounds, such as "sh -c cat < /dev/null; hostname", which hangs until you
send an eof to the cat, but it's pretty distasteful and hard for someone to
devise on their own.

My suggestion is to be able to set the process filter as an optional
additional argument to start-process. This should be upwardly compatible and
simple to implement. How about it?
--

		J. Eliot B. Moss, Assistant Professor
		Department of Computer and Information Science
		Lederle Graduate Research Center
		University of Massachusetts
		Amherst, MA  01003
		(413) 545-4206; Moss@cs.umass.edu
Technical Details
Message-ID: <MOSS.91Jan3105230@ibis.cs.umass.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!cs.umass.edu!moss

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,778397e09b3f4faf,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-03 07:52:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!cs.umass.edu!moss
From: moss@cs.umass.edu (Eliot Moss)
Newsgroups: gnu.emacs.bug
Subject: start-process bug/misfeature
Message-ID: <MOSS.91Jan3105230@ibis.cs.umass.edu>
Date: 3 Jan 91 15:52:30 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: moss@cs.umass.edu
Distribution: gnu
Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
Lines: 23
Approved: bug-gnu-emacs@prep.ai.mit.edu