Function: eshell-wait-for-process

eshell-wait-for-process is a byte-compiled function defined in esh-proc.el.gz.

Signature

(eshell-wait-for-process &rest PROCS)

Documentation

Wait until PROCS have successfully completed.

Aliases

eshell/wait

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defun eshell-wait-for-process (&rest procs)
  "Wait until PROCS have successfully completed."
  (dolist (proc procs)
    (when (eshell-processp proc)
      (while (eshell-process-active-p proc)
        (when (input-pending-p)
          (discard-input))
        (sit-for eshell-process-wait-time)))))