Mercurial > emacs
diff lisp/server.el @ 110707:17914d74ccf4
* lisp/server.el (server-process-filter, server-return-error): Give
emacsclient time to shut down after receiving an error string.
* etc/NEWS: Document tweak to emacsclient exit status.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 02 Oct 2010 20:03:44 -0400 |
parents | 838ae151fca7 |
children | bec49af30c2f |
line wrap: on
line diff
--- a/lisp/server.el Sat Oct 02 20:00:01 2010 -0400 +++ b/lisp/server.el Sat Oct 02 20:03:44 2010 -0400 @@ -876,6 +876,9 @@ (server-log "Authentication failed" proc) (server-send-string proc (concat "-error " (server-quote-arg "Authentication failed"))) + ;; Before calling `delete-process', give emacsclient time to + ;; receive the error string and shut down on its own. + (sit-for 1) (delete-process proc) ;; We return immediately (return-from server-process-filter))) @@ -1129,6 +1132,9 @@ proc (concat "-error " (server-quote-arg (error-message-string err)))) (server-log (error-message-string err) proc) + ;; Before calling `delete-process', give emacsclient time to + ;; receive the error string and shut down on its own. + (sit-for 5) (delete-process proc))) (defun server-goto-line-column (line-col)