s390x/sclpconsole-lm: Fix hanging SCLP line mode console

Trigger recalculating sets of file descriptors for the main loop's poll()
in order to make sure a possibly removed FD 0 from the poll() file
descriptor array is re-added. FD 0 is removed from the decriptor array
when the console's can_read() callback returns 0.

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
Heinz Graalfs 2014-10-29 12:52:02 +00:00 committed by Cornelia Huck
parent b3191432cf
commit 87f2eff016
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ static int get_console_data(SCLPEvent *event, uint8_t *buf, size_t *size,
cons->length = 0; cons->length = 0;
/* data provided and no more data pending */ /* data provided and no more data pending */
event->event_pending = false; event->event_pending = false;
qemu_notify_event();
return 0; return 0;
} }