From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30460: 27.0.50; `process-command' of a stopped process is t Date: Sat, 17 Feb 2018 15:25:50 +0200 Message-ID: <83y3jrbvdt.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518873853 20541 195.159.176.226 (17 Feb 2018 13:24:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2018 13:24:13 +0000 (UTC) Cc: 30460@debbugs.gnu.org To: p.stephani2@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 17 14:24:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en2TG-0004uV-Kw for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Feb 2018 14:24:06 +0100 Original-Received: from localhost ([::1]:49908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en2VI-0001Ud-J3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Feb 2018 08:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en2VB-0001Tz-PT for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 08:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en2V8-0003cE-L9 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 08:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1en2V8-0003c1-H6 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 08:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1en2V8-00048s-2Z for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30460-submit@debbugs.gnu.org id=B30460.151887396115914 (code B ref 30460); Sat, 17 Feb 2018 13:26:02 +0000 Original-Received: (at 30460) by debbugs.gnu.org; 17 Feb 2018 13:26:01 +0000 Original-Received: from localhost ([127.0.0.1]:47601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en2V5-00048b-JM for submit@debbugs.gnu.org; Sat, 17 Feb 2018 08:26:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en2V3-00048P-Iy for 30460@debbugs.gnu.org; Sat, 17 Feb 2018 08:25:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en2Uv-0003ZU-7V for 30460@debbugs.gnu.org; Sat, 17 Feb 2018 08:25:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en2Uv-0003ZL-3I; Sat, 17 Feb 2018 08:25:49 -0500 Original-Received: from [176.228.60.248] (port=3681 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1en2Uu-0007sN-Fo; Sat, 17 Feb 2018 08:25:48 -0500 In-reply-to: (p.stephani2@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143373 Archived-At: > Date: Wed, 14 Feb 2018 23:00:26 +0100 > From: p.stephani2@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. The simplest change is just delete this snipper from Fmake_process: if (tem = Fplist_get (contact, QCstop), !NILP (tem)) pset_command (XPROCESS (proc), Qt); The correct command was already set by that time, so the above just overwrites the correct expected value.