From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53814: process-status returns invalid/undocumented status file-error for network process Date: Sun, 06 Feb 2022 07:26:00 +0000 Message-ID: <-ejTwlwSAZHwKfzZZGDR7XPlHefJ7smDjLy3BOHW66oB1-7iUBOsqY09uHYjt9HL6BZ9f3-54MMMbs04SGv_v7xKZYL9qOk24aUKQVl1Qj8=@protonmail.com> Reply-To: emacsq Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26202"; mail-complaints-to="usenet@ciao.gmane.io" To: 53814@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 06 08:34:36 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGc4C-0006bA-GM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 08:34:36 +0100 Original-Received: from localhost ([::1]:35068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGc4B-0006B7-17 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 02:34:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGbwt-000418-Oi for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 02:27:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGbws-0003yU-Oq for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 02:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGbws-0005n7-Jx for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 02:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: emacsq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53814 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "Bug reports for GNU Emacs, the Swiss army knife of text editors" Original-Received: via spool by submit@debbugs.gnu.org id=B.164413238222208 (code B ref -1); Sun, 06 Feb 2022 07:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 07:26:22 +0000 Original-Received: from localhost ([127.0.0.1]:36272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGbwD-0005m8-Mc for submit@debbugs.gnu.org; Sun, 06 Feb 2022 02:26:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGbwC-0005m1-FI for submit@debbugs.gnu.org; Sun, 06 Feb 2022 02:26:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGbw2-0003vk-Qj for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 02:26:15 -0500 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:55591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGbvy-0003qZ-AC for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 02:26:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1644132362; bh=Haek1vwyK7/GTmuCcL3bpKrQdgLsXYufeWW1Scsq2oE=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=w/zs0uQM0iVCCFDzyRFVOUmUgoRD8TmuUUbXInLSfwslUnqjxmP64U1LYReZqgJzM 2GdGRsOJU9v80vZ4kjBYqI1PsTCaUUnlQ8ltlbi4GuBdTNAgHBOKd87+Ctkfn/3skm dQG693dhfhd3IebmpPlbpE5/7yoBQ1FrTeqxOxTeh0xbcqfP+TxENa4+lvP2wUxSWL 9YQPPZvFgU548DTU+Ub2yLPNJxLidffwol3MRV8QgzD3zif6NgbgV4K/9C39//L2br reR1YhKPUQ59fxxINdwVxf83lXV7Nxm7xCnf7NXkmXV4TqXG8n+Z/FPcgsUjQSR36i jRwEfMuMcrhNg== Received-SPF: pass client-ip=185.70.43.24; envelope-from=laszlomail@protonmail.com; helo=mail-4324.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" X-ACL-Warn: , emacsq Xref: news.gmane.io gmane.emacs.bugs:226137 Archived-At: M-x list-process shows some network processes with the status file-error. According to the docs this is not a valid return value for process-status: Return the status of PROCESS. The returned value is one of the following symbols: run -- for a process that is running. stop -- for a process stopped but continuable. exit -- for a process that has exited. signal -- for a process that has got a fatal signal. open -- for a network stream connection that is open. listen -- for a network stream server that is listening. closed -- for a network stream connection that is closed. connect -- when waiting for a non-blocking connection to complete. failed -- when a non-blocking connection has failed. nil -- if arg is a process name and no such process exists. PROCESS may be a process, a buffer, the name of a process, or nil, indicating the current buffer's process. Apparently, process.c does set this this invalid status for some reason: Lisp_Object data =3D get_file_errno_data (err, contact, xerrno); pset_status (p, list2 (Fcar (data), Fcdr (data))); unbind_to (count, Qnil); return; https://github.com/emacs-mirror/emacs/blob/3af9e84ff59811734dcbb5d55e04e1fd= b7051e77/src/process.c#L3642