projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f6bcc
)
virtio: console: Send SIGIO in case of port unplug
author
Amit Shah
<amit.shah@redhat.com>
Thu, 2 Sep 2010 13:17:54 +0000
(18:47 +0530)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:04 +0000
(17:44 +1030)
If a port has registered for SIGIO signals, let the application
know that the port is getting unplugged.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/virtio_console.c
b/drivers/char/virtio_console.c
index 6d5c579b1693d1663d46639e60eef07cc3eb20e8..dc42d5689483f80ae3c3d62e1adfa96860898f64 100644
(file)
--- a/
drivers/char/virtio_console.c
+++ b/
drivers/char/virtio_console.c
@@
-1259,6
+1259,9
@@
static void unplug_port(struct port *port)
port->guest_connected = false;
port->host_connected = false;
wake_up_interruptible(&port->waitqueue);
+
+ /* Let the app know the port is going down. */
+ send_sigio_to_port(port);
}
if (is_console_port(port)) {