17 Dec
2021
17 Dec
'21
3:10 p.m.
Hi Eric, On 12/15/21 10:46 AM, Eric Pouech wrote:
+static int console_add_queue( struct object *obj, struct wait_queue_entry *entry ) +{ + struct console*console = (struct console*)obj; + assert( obj->ops == &console_ops ); + /* before waiting, ensure conhost's input thread has been started */ + if (console->server && !console->server->once_input) + queue_host_ioctl( console->server, IOCTL_CONDRV_PEEK, 0, NULL, NULL );
I think I mislead you, sorry about that. We still need to set once_input here because non-Unix consoles will never call IOCTL_CONDRV_SETUP_INPUT. And instead of setting it in IOCTL_CONDRV_SETUP_INPUT, we could simply add term_fd != -1 check here. Other parts look good to me now. Thanks, Jacek