diff options
| author | Richard M. Stallman | 1994-04-22 04:37:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-22 04:37:36 +0000 |
| commit | 572986cdcd3b86a3e2f4b7c35e1ec97434a17bff (patch) | |
| tree | ecc791a423f05c94c179283b722fe3c908c6cb2a | |
| parent | cec574b950bc8c8c8d6002ac15e6048fe70c69c6 (diff) | |
| download | emacs-572986cdcd3b86a3e2f4b7c35e1ec97434a17bff.tar.gz emacs-572986cdcd3b86a3e2f4b7c35e1ec97434a17bff.zip | |
(display-time): Force use of pipe, not pty.
| -rw-r--r-- | lisp/time.el | 11 |
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'." | |||
| 72 | (setq global-mode-string | 72 | (setq global-mode-string |
| 73 | (append global-mode-string '(display-time-string)))) | 73 | (append global-mode-string '(display-time-string)))) |
| 74 | (setq display-time-string "") | 74 | (setq display-time-string "") |
| 75 | (setq display-time-process | 75 | ;; Using a pty is wasteful, and the separate session causes |
| 76 | (start-process "display-time" nil | 76 | ;; annoyance sometimes (some systems kill idle sessions). |
| 77 | (expand-file-name "wakeup" exec-directory) | 77 | (let ((process-connection-type nil)) |
| 78 | (int-to-string display-time-interval))) | 78 | (setq display-time-process |
| 79 | (start-process "display-time" nil | ||
| 80 | (expand-file-name "wakeup" exec-directory) | ||
| 81 | (int-to-string display-time-interval)))) | ||
| 79 | (process-kill-without-query display-time-process) | 82 | (process-kill-without-query display-time-process) |
| 80 | (set-process-sentinel display-time-process 'display-time-sentinel) | 83 | (set-process-sentinel display-time-process 'display-time-sentinel) |
| 81 | (set-process-filter display-time-process 'display-time-filter))))) | 84 | (set-process-filter display-time-process 'display-time-filter))))) |