summaryrefslogtreecommitdiff
path: root/lisp/time.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-22 04:37:36 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-22 04:37:36 +0000
commit53727caca8eab6de07e3594bc3ab8e77ef665234 (patch)
treed4e890e5ae61db462ea1d2404dd82a202e6d4bca /lisp/time.el
parent74582aa6759fc4daf116820e64c879974dc62f98 (diff)
downloademacs-53727caca8eab6de07e3594bc3ab8e77ef665234.tar.gz
(display-time): Force use of pipe, not pty.
Diffstat (limited to 'lisp/time.el')
-rw-r--r--lisp/time.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/time.el b/lisp/time.el
index fe3df1f99ac..5df6c5eaad9 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -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)))))