commit | e4199103bd85fae76ce7009d7d6abacf28f1f972 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Thu Jul 18 19:35:46 2013 +0530 |
committer | Amit Shah <amit.shah@redhat.com> | Thu Jul 25 19:05:26 2013 +0530 |
tree | 375eed3bccb236ce49891fe591fed341f6e8789c | |
parent | d8ffeceebfc527db85406850d22fa3da64aabbe3 [diff] |
virtio: console: fix raising SIGIO after port unplug SIGIO should be sent when a port gets unplugged. It should only be sent to prcesses that have the port opened, and have asked for SIGIO to be delivered. We were clearing out guest_connected before calling send_sigio_to_port(), resulting in a sigio not getting sent to processes. Fix by setting guest_connected to false after invoking the sigio function. CC: <stable@vger.kernel.org> Signed-off-by: Amit Shah <amit.shah@redhat.com>