Variable: eshell-kill-processes-on-exit

eshell-kill-processes-on-exit is a customizable variable defined in esh-proc.el.gz.

Value

nil

Documentation

If non-nil, kill active processes when exiting an Eshell buffer.

Emacs will only kill processes owned by that Eshell buffer.

If nil, ownership of background and foreground processes reverts to Emacs itself, and will die only if the user exits Emacs, calls kill-process, or terminates the processes externally.

If ask, Emacs prompts the user before killing any processes.

If every, it prompts once for every process.

If t, it kills all buffer-owned processes without asking.

Processes are first sent SIGHUP, then SIGINT, then SIGQUIT, then SIGKILL. The variable eshell-kill-process-wait-time specifies how long to delay between signals.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defcustom eshell-kill-processes-on-exit nil
  "If non-nil, kill active processes when exiting an Eshell buffer.
Emacs will only kill processes owned by that Eshell buffer.

If nil, ownership of background and foreground processes reverts to
Emacs itself, and will die only if the user exits Emacs, calls
`kill-process', or terminates the processes externally.

If `ask', Emacs prompts the user before killing any processes.

If `every', it prompts once for every process.

If t, it kills all buffer-owned processes without asking.

Processes are first sent SIGHUP, then SIGINT, then SIGQUIT, then
SIGKILL.  The variable `eshell-kill-process-wait-time' specifies how
long to delay between signals."
  :type '(choice (const :tag "Kill all, don't ask" t)
		 (const :tag "Ask before killing" ask)
		 (const :tag "Ask for each process" every)
		 (const :tag "Don't kill subprocesses" nil)))