Avoid 100% CPU utilization on ssh session exit.
commit7f0ff25b7a056570e2435a88b9bb736501aaa12b
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 21:31:18 +0000 (2 14:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 21:31:18 +0000 (2 14:31 -0700)
tree7713fd3134cb7640cc934f0812192691a349b610
parent69402c0269859f30be8b62ccd313292db0e73693
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
src/ChangeLog
src/xterm.c
src/xterm.h