aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Allen2025-06-13 07:51:37 -0700
committerEli Zaretskii2025-06-14 18:02:40 +0300
commit4d88b925ba839fab9448915edcc699a6647df71c (patch)
treef2a74b08ced07d05fc8ebc35dc757ccaea56a526 /src
parent69254cd51a1cdf8a67f2c10421c098cf907c0125 (diff)
downloademacs-4d88b925ba839fab9448915edcc699a6647df71c.tar.gz
emacs-4d88b925ba839fab9448915edcc699a6647df71c.zip
Improve documentation of the internal Lisp_Process->status field
Contrary to the existing documentation here, the value of this field cannot be the symbols open or closed. Furthermore, this field is never set to "stop" for network connections. * src/process.h (Lisp_Process): Improve/fix documentation of the 'status' field. (Bug#78784)
Diffstat (limited to 'src')
-rw-r--r--src/process.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/process.h b/src/process.h
index a27e95a9199..1e0ad8c7f68 100644
--- a/src/process.h
+++ b/src/process.h
@@ -83,13 +83,20 @@ struct Lisp_Process
83 Lisp_Object mark; 83 Lisp_Object mark;
84 84
85 /* Symbol indicating status of process. 85 /* Symbol indicating status of process.
86 This may be a symbol: run, open, closed, listen, or failed. 86 This may be a symbol: run, listen, or failed.
87 Or it may be a pair (connect . ADDRINFOS) where ADDRINFOS is 87 Or it may be a pair (connect . ADDRINFOS) where ADDRINFOS is
88 a list of remaining (PROTOCOL . ADDRINFO) pairs to try. 88 a list of remaining (PROTOCOL . ADDRINFO) pairs to try.
89 Or it may be (failed ERR) where ERR is an integer, string or symbol. 89 Or it may be (failed ERR) where ERR is an integer, string or symbol.
90 Or it may be a list, whose car is stop, exit or signal 90 Or it may be a list, whose car is stop, exit or signal
91 and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG) 91 and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG)
92 or (SIGNAL_NUMBER . COREDUMP_FLAG). */ 92 or (SIGNAL_NUMBER . COREDUMP_FLAG).
93 The symbols open and closed are not used here: an open network
94 process has an internal status of "run" and a closed network
95 process an internal status of "exit".
96 Stopped network processes do not set this status to "stop";
97 instead, they set command to t. "stop" is only used here to
98 indicate stopped system processes.
99 */
93 Lisp_Object status; 100 Lisp_Object status;
94 101
95 /* Coding-system for decoding the input from this process. */ 102 /* Coding-system for decoding the input from this process. */