diff options
author | Romain Francoise <romain@orebokech.com> | 2005-10-24 11:06:03 +0000 |
---|---|---|
committer | Romain Francoise <romain@orebokech.com> | 2005-10-24 11:06:03 +0000 |
commit | cbfc02e4f0b8e3e24c00f0016508cc5d03be1f15 (patch) | |
tree | dd847de6c937b5ff64953fbe0d13b6faee2045ab /lisp/server.el | |
parent | 175a97e423673d7160ca85bdbbef24a5538f2ab8 (diff) | |
download | emacs-cbfc02e4f0b8e3e24c00f0016508cc5d03be1f15.tar.gz |
(server-sentinel): Set query-on-exit flag to nil on new client processes
(it isn't inherited from the server process).
Diffstat (limited to 'lisp/server.el')
-rw-r--r-- | lisp/server.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/server.el b/lisp/server.el index 3e70b78e782..ef8a3d18355 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -189,6 +189,11 @@ are done with it in the server.") (not server-existing-buffer)) (server-temp-file-p))) (kill-buffer (current-buffer))))))) + ;; If this is a new client process, set the query-on-exit flag to nil + ;; for this process (it isn't inherited from the server process). + (when (and (eq (process-status proc) 'open) + (process-query-on-exit-flag proc)) + (set-process-query-on-exit-flag proc nil)) (server-log (format "Status changed to %s" (process-status proc)) proc)) (defun server-select-display (display) |