Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a461e11e authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: console: Send SIGIO in case of port unplug



If a port has registered for SIGIO signals, let the application
know that the port is getting unplugged.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 55f6bcce
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)) {