1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00

(display-time): Force use of pipe, not pty.

This commit is contained in:
Richard M. Stallman 1994-04-22 04:37:36 +00:00
parent cec574b950
commit 572986cdcd

View File

@ -72,10 +72,13 @@ After each update, `display-time-hook' is run with `run-hooks'."
(setq global-mode-string
(append global-mode-string '(display-time-string))))
(setq display-time-string "")
(setq display-time-process
(start-process "display-time" nil
(expand-file-name "wakeup" exec-directory)
(int-to-string display-time-interval)))
;; Using a pty is wasteful, and the separate session causes
;; annoyance sometimes (some systems kill idle sessions).
(let ((process-connection-type nil))
(setq display-time-process
(start-process "display-time" nil
(expand-file-name "wakeup" exec-directory)
(int-to-string display-time-interval))))
(process-kill-without-query display-time-process)
(set-process-sentinel display-time-process 'display-time-sentinel)
(set-process-filter display-time-process 'display-time-filter)))))