diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-08-02 14:31:18 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-08-02 14:31:18 -0700 |
commit | 7f0ff25b7a056570e2435a88b9bb736501aaa12b (patch) | |
tree | 7713fd3134cb7640cc934f0812192691a349b610 /src/xterm.h | |
parent | 69402c0269859f30be8b62ccd313292db0e73693 (diff) | |
download | emacs-7f0ff25b7a056570e2435a88b9bb736501aaa12b.tar.gz |
Avoid 100% CPU utilization on ssh session exit.
* src/xterm.h (struct x_display_info): New member 'connection'.
* src/xterm.c (x_term_init, x_delete_terminal): Set and use it,
so that x_delete_terminal has a file descriptor to pass to
delete_keyboard_wait_descriptor.
Fixes: debbugs:17691
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 50df88cb592..2bed0d1d5d1 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -137,6 +137,9 @@ struct x_display_info /* This says how to access this display in Xlib. */ Display *display; + /* A connection number (file descriptor) for the display. */ + int connection; + /* This is a cons cell of the form (NAME . FONT-LIST-CACHE). */ Lisp_Object name_list_element; |