GNU bug report logs - #30460
27.0.50; `process-command' of a stopped process is t

Previous Next

Package: emacs;

Reported by: p.stephani2 <at> gmail.com

Date: Wed, 14 Feb 2018 22:01:02 UTC

Severity: normal

Found in version 27.0.50

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 30460 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30460 <at> debbugs.gnu.org
Subject: Re: bug#30460: 27.0.50; `process-command' of a stopped process is t
Date: Fri, 19 Apr 2019 13:05:44 +0200
Am Sa., 17. Feb. 2018 um 14:25 Uhr schrieb Eli Zaretskii <eliz <at> gnu.org>:
>
> > Date: Wed, 14 Feb 2018 23:00:26 +0100
> > From: p.stephani2 <at> gmail.com
> >
> >
> > (process-command
> >    (make-process :name "sleep" :command '("sleep" "1h") :stop t))
> >
> > returns t.
> >
> > This is not documented (the docstring and the manual say that this
> > should only happen for a pipe, network, or serial connection), and
> > breaks M-x list-processes, which assumes that the return value of
> > `process-command' is a list for an ordinary process.
>
> ":stop t" currently has no effect on a "real" process running a
> command, because it is not generally possible to start a process in a
> stopped state.  So it's a Good Thing list-processes fails for such
> bogus "processes" ;-)
>
> We could fix this by either ignoring :stop in make-process, or by
> signaling an error.

I prefer the second option for clarity and will send a patch in a moment.




This bug report was last modified 6 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.