unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53814: process-status returns invalid/undocumented status file-error for network process
@ 2022-02-06  7:26 emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-06 10:44 ` emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 6+ messages in thread
From: emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-06  7:26 UTC (permalink / raw)
  To: 53814

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-07  6:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-06  7:26 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 10:44 ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).