aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2006-11-03 00:24:26 +0000
committerJuanma Barranquero2006-11-03 00:24:26 +0000
commite101e71804c0f978562c3a99aa4f0ddc47728233 (patch)
treef7299465e07c03f4ec4b61648479ac6dfe2397ee
parent757e168190bd44b117f920b6794e5cef4efcaa41 (diff)
downloademacs-e101e71804c0f978562c3a99aa4f0ddc47728233.tar.gz
emacs-e101e71804c0f978562c3a99aa4f0ddc47728233.zip
*** empty log message ***
-rw-r--r--lisp/server.el32
1 files changed, 16 insertions, 16 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 1b32ed11228..992d917f986 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -345,22 +345,22 @@ Prefix arg means just kill any existing server communications subprocess."
345 (list :family 'local 345 (list :family 'local
346 :service server-file 346 :service server-file
347 :plist '(:authenticated t))))) 347 :plist '(:authenticated t)))))
348 (unless server-process (error "Could not start server process")) 348 (unless server-process (error "Could not start server process"))
349 (when server-use-tcp 349 (when server-use-tcp
350 (let ((auth-key 350 (let ((auth-key
351 (loop 351 (loop
352 ;; The auth key is a 64-byte string of random chars in the 352 ;; The auth key is a 64-byte string of random chars in the
353 ;; range `!'..`~'. 353 ;; range `!'..`~'.
354 for i below 64 354 for i below 64
355 collect (+ 33 (random 94)) into auth 355 collect (+ 33 (random 94)) into auth
356 finally return (concat auth)))) 356 finally return (concat auth))))
357 (process-put server-process :auth-key auth-key) 357 (process-put server-process :auth-key auth-key)
358 (with-temp-file server-file 358 (with-temp-file server-file
359 (set-buffer-multibyte nil) 359 (set-buffer-multibyte nil)
360 (setq buffer-file-coding-system 'no-conversion) 360 (setq buffer-file-coding-system 'no-conversion)
361 (insert (format-network-address 361 (insert (format-network-address
362 (process-contact server-process :local)) 362 (process-contact server-process :local))
363 "\n" auth-key)))))))) 363 "\n" auth-key))))))))
364 364
365;;;###autoload 365;;;###autoload
366(define-minor-mode server-mode 366(define-minor-mode server-mode