Several functions return information about processes.
list-processes
is provided for interactive use.
nil
.
(process-list) => (#<process display-time> #<process shell>)
nil
if
there is none. An error is signaled if name is not a string.
(get-process "shell") => #<process shell>
(process-command (get-process "shell")) => ("/bin/csh" "-i")
The possible values for an actual subprocess are:
run
stop
exit
signal
open
closed
nil
(process-status "shell") => run (process-status (get-buffer "*shell*")) => run x => #<process xx<1>> (process-status x) => exit
For a network connection, process-status
returns one of the symbols
open
or closed
. The latter means that the other side
closed the connection, or Emacs did delete-process
.
In earlier Emacs versions (prior to version 19), the status of a network
connection was run
if open, and exit
if closed.
process-status
to
determine which of those it is.) If process has not yet
terminated, the value is 0.
nil
if it is using pipes
instead of a terminal (see process-connection-type
in
section Creating an Asynchronous Process).
Go to the first, previous, next, last section, table of contents.