Subject: Re: bug#18112: 24.4.50; emacs --daemon infinite loop in find_interval

From: Eli Zaretskii <[email-masked]>
Date: Sat, 26 Jul 2014 11:22:22 +0300

> From: Andreas Schwab <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Sat, 26 Jul 2014 10:15:58 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > The loop is in redisplay, and the reason seems to be that get_tty_size
> > returns incorrect size after the second tmux pane is closed with ^D.
> > We get one line more than tmux leaves us (after usurping 1 line for
> > its status line).
> 
> Does get_tty_size actually look at the correct terminal (the one
> connected to the tty frame)?

See handle_window_change_signal: we loop through all the tty's, and
call get_tty_size for each one of them.

If this doesn't answer the question, please tell how to check that the
terminal is the correct one, and I will take a look.

Thanks.