When Emacs exits, it terminates all its subprocesses by sending them
the SIGHUP signal. Because subprocesses may be doing
valuable work, Emacs normally asks the user to confirm that it is ok
to terminate them. Each process has a query flag which, if
non-nil, says that Emacs should ask for confirmation before
exiting and thus killing that process. The default for the query flag
is t, meaning do query.
This function sets the query flag of process to flag. It returns flag.
;; Don't query about the shell process (set-process-query-on-exit-flag (get-process "shell") nil) ⇒ t
This function clears the query flag of process, so that Emacs will not query the user on account of that process.
Actually, the function does more than that: it returns the old value of the process's query flag, and sets the query flag to do-query. Please don't use this function to do those things any more—please use the newer, cleaner functions
process-query-on-exit-flagandset-process-query-on-exit-flagin all but the simplest cases. The only way you should useprocess-kill-without-querynowadays is like this:;; Don't query about the shell process (process-kill-without-query (get-process "shell"))