Function: comint-check-proc
comint-check-proc is a byte-compiled function defined in comint.el.gz.
Signature
(comint-check-proc BUFFER)
Documentation
Return non-nil if there is a living process associated w/buffer BUFFER.
Living means the status is open, run, or stop.
BUFFER can be either a buffer or the name of one.
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-check-proc (buffer)
"Return non-nil if there is a living process associated w/buffer BUFFER.
Living means the status is `open', `run', or `stop'.
BUFFER can be either a buffer or the name of one."
(let ((proc (get-buffer-process buffer)))
(and proc (memq (process-status proc) '(open run stop)))))