Function: eshell-round-robin-kill

eshell-round-robin-kill is a byte-compiled function defined in esh-proc.el.gz.

Signature

(eshell-round-robin-kill &optional QUERY)

Documentation

Kill current process by trying various signals in sequence.

See the variable eshell-kill-processes-on-exit.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defun eshell-round-robin-kill (&optional query)
  "Kill current process by trying various signals in sequence.
See the variable `eshell-kill-processes-on-exit'."
  (let ((sigs eshell-kill-process-signals))
    (while sigs
      (eshell-process-interact
       (lambda (proc)
         (signal-process (process-id proc) (car sigs))) t query)
      (setq query nil)
      (if (not eshell-process-list)
	  (setq sigs nil)
	(sleep-for eshell-kill-process-wait-time)
	(setq sigs (cdr sigs))))))