Function: term-check-proc

term-check-proc is a byte-compiled function defined in term.el.gz.

Signature

(term-check-proc BUFFER)

Documentation

Non-nil if there is a process associated w/buffer BUFFER, and it is alive.

BUFFER can be either a buffer or the name of one.

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-check-proc (buffer)
  "Non-nil if there is a process associated w/buffer BUFFER, and it is alive.
BUFFER can be either a buffer or the name of one."
  (let ((proc (get-buffer-process buffer)))
    (and proc (memq (process-status proc) '(run stop open listen connect)))))