diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2014-10-29 12:52:02 +0000 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2014-11-05 16:35:56 +0100 |
commit | 87f2eff01623fe3d79e6c0962a3037d48b80b548 (patch) | |
tree | bbc081ca136f7476b6d77a72ec217d8166bac475 /hw | |
parent | b3191432cf49c556f47d75c929f5aa692ae59da1 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/char/sclpconsole-lm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c index 605dd50fb4..a9f5e62f24 100644 --- a/hw/char/sclpconsole-lm.c +++ b/hw/char/sclpconsole-lm.c @@ -128,6 +128,7 @@ static int get_console_data(SCLPEvent *event, uint8_t *buf, size_t *size, cons->length = 0; /* data provided and no more data pending */ event->event_pending = false; + qemu_notify_event(); return 0; } |