all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 53814@debbugs.gnu.org
Subject: bug#53814: process-status returns invalid/undocumented status file-error for network process
Date: Sun, 06 Feb 2022 07:26:00 +0000	[thread overview]
Message-ID: <-ejTwlwSAZHwKfzZZGDR7XPlHefJ7smDjLy3BOHW66oB1-7iUBOsqY09uHYjt9HL6BZ9f3-54MMMbs04SGv_v7xKZYL9qOk24aUKQVl1Qj8=@protonmail.com> (raw)

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 = 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/3af9e84ff59811734dcbb5d55e04e1fdb7051e77/src/process.c#L3642





             reply	other threads:[~2022-02-06  7:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-06  7:26 emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-02-06 10:44 ` bug#53814: process-status returns invalid/undocumented status file-error for network process emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-06 12:32   ` emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-06 23:26     ` Lars Ingebrigtsen
2022-02-06 23:27   ` Lars Ingebrigtsen
2022-02-07  6:39     ` emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='-ejTwlwSAZHwKfzZZGDR7XPlHefJ7smDjLy3BOHW66oB1-7iUBOsqY09uHYjt9HL6BZ9f3-54MMMbs04SGv_v7xKZYL9qOk24aUKQVl1Qj8=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=53814@debbugs.gnu.org \
    --cc=laszlomail@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.