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 PROC has successfully completed.
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defun eshell-wait-for-process (&rest procs)
"Wait until PROC has successfully completed."
(while procs
(let ((proc (car procs)))
(when (eshell-processp proc)
;; NYI: If the process gets stopped here, that's bad.
(while (assq proc eshell-process-list)
(if (input-pending-p)
(discard-input))
(sit-for eshell-process-wait-seconds
eshell-process-wait-milliseconds))))
(setq procs (cdr procs))))