Re: [linux-usb-devel] [PATCH] (linux 2.4.25) hangup on disconnectfor usbserial module

From: Pete Zaitcev
Date: Mon Apr 05 2004 - 00:15:50 EST


On Sun, 4 Apr 2004 21:46:52 -0700
"Robert White" <rwhite@xxxxxxxxxxxx> wrote:

> This is "reasonably well tested" on the x86 platform.
>
> This patch fixes a problem where the usbserial code would not notify
> connected programs that the serial port was going away.

> @@ -1404,9 +1408,11 @@ static void usb_serial_disconnect(struct
> for (i = 0; i < serial->num_ports; ++i) {
> port = &serial->port[i];
> down (&port->sem);
> - if (port->tty != NULL)
> + if (port->tty != NULL) {
> + tty_hangup(port->tty);
> while (port->open_count > 0)
> __serial_close(port, NULL);
> + }

I'll think about it.

If Greg approves and takes, it's fine, too.

What is the actual symptom? Did you expect a SIGHUP?

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/