Killing Emacs means ending the execution of the Emacs process.
If you started Emacs from a terminal, the parent process
normally resumes control. The low-level primitive for killing
Emacs is This command calls the hook kill-emacs-hook, then exits
the Emacs process and kills it. If exit-data is an integer, that
is used as the exit status of the Emacs process. (This is useful
primarily in batch operation; see Batch Mode.) If exit-data is a
string, its contents are stuffed into the terminal input buffer
so that the shell (or whatever program next reads input) can
read them. kill-emacs function is normally called via the
higher-level command C-x C-c save-buffers-kill-terminal). See
Exiting. It is also called automatically if Emacs receives a
SIGHUP operating system signal (e.g., when the controlling
terminal is disconnected), or if it receives a SIGINT signal
while running in batch mode (see Batch Mode). This normal hook
is run by kill-emacs, before it kills Emacs. kill-emacscan be
called in situations where user