summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2005-10-24 11:06:03 +0000
committerRomain Francoise <romain@orebokech.com>2005-10-24 11:06:03 +0000
commitcbfc02e4f0b8e3e24c00f0016508cc5d03be1f15 (patch)
treedd847de6c937b5ff64953fbe0d13b6faee2045ab /lisp/server.el
parent175a97e423673d7160ca85bdbbef24a5538f2ab8 (diff)
downloademacs-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.el5
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)