Function: eshell-kill-process-function

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

Signature

(eshell-kill-process-function PROC STATUS)

Documentation

Function run when killing a process.

Runs eshell-reset-after-proc and eshell-kill-hook, passing arguments PROC and STATUS to functions on the latter.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
;;; Functions:

(defun eshell-kill-process-function (proc status)
  "Function run when killing a process.
Runs `eshell-reset-after-proc' and `eshell-kill-hook', passing arguments
PROC and STATUS to functions on the latter."
  ;; Was there till 24.1, but it is not optional.
  (remove-hook 'eshell-kill-hook #'eshell-reset-after-proc)
  (eshell-reset-after-proc status)
  (run-hook-with-args 'eshell-kill-hook proc status))