Re: [PATCH v2 08/25] Make input_fd be per UI

Yao Qi
2016-03-22T09:46:24Z

Pedro Alves <palves@redhat.com> writes:

> @@ -498,6 +504,10 @@ target_terminal_inferior (void)
> void
> target_terminal_ours (void)
> {
> + struct ui *ui = current_ui;
> +
> + add_file_handler (ui->input_fd, stdin_event_handler, ui);
> +
> if (terminal_state == terminal_is_ours)
> return;

We should call add_file_handler after the terminal_state check above.

--
Yao (齐尧)