eshell-kill-buffer-function
eshell-kill-buffer-function is a compiled Lisp function in `esh-mode.el
'.
(eshell-kill-buffer-function)
Function added to `kill-buffer-hook' in Eshell buffers.
This runs the function `eshell-kill-processes-on-exit',
and the hook `eshell-exit-hook'.