Function: eshell-kill-process-function
eshell-kill-process-function is a byte-compiled function defined in
esh-proc.el.gz.
This function is obsolete since 30.1.
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."
(declare (obsolete nil "30.1"))
;; Was there till 24.1, but it is not optional.
(remove-hook 'eshell-kill-hook #'eshell-reset-after-proc)
;; Only reset the prompt if this process is running interactively.
(when (eq proc (eshell-tail-process))
(eshell-reset-after-proc status))
(run-hook-with-args 'eshell-kill-hook proc status))