Re: 3.6 regression? Serial port stays open after USB device disconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 20 Aug 2012, Bjørn Mork wrote:

> Hello,
> 
> I just noticed that /dev/ttyUSBx devices are not destroyed and released
> on USB device disconnect if some process keeps the file open, and
> reading from the file does not return an error - it successfully reads 0
> bytes instead.

I could be wrong about this, but isn't reading from a hung-up tty
supposed to be much like reaching end-of-file?  That doesn't return an
error either, but applications manage to deal with it somehow.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux