Next: Accessing Other Processes, Previous: Sentinels: Detecting Process Status Changes, Up: Processes [Contents][Index]
41.11 Querying Before ExitWhen Emacs exits, it terminates all its subprocesses. For subprocesses that run a program, it sends them the SIGHUP
signal; connections are simply closed. 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 returns the query flag of process.
This function sets the query flag of process to flag. It returns flag.
Here is an example of using set-process-query-on-exit-flag
on a shell process to avoid querying:
(set-process-query-on-exit-flag (get-process "shell") nil) ⇒ nil
If this user option is set to t
(the default), then Emacs asks for confirmation before killing processes on exit. If it is nil
, Emacs kills processes without confirmation, i.e., the query flag of all processes is ignored.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4