Function: process-live-p

process-live-p is a byte-compiled function defined in subr.el.gz.

Signature

(process-live-p PROCESS)

Documentation

Return non-nil if PROCESS is alive.

A process is considered alive if its status is run, open, listen, connect or stop. Value is nil if PROCESS is not a process.

Other relevant functions are documented in the process group.

Shortdoc

;; process
(process-live-p process)
    e.g. => t

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun process-live-p (process)
  "Return non-nil if PROCESS is alive.
A process is considered alive if its status is `run', `open',
`listen', `connect' or `stop'.  Value is nil if PROCESS is not a
process."
  (and (processp process)
       (memq (process-status process)
	     '(run open listen connect stop))))