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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to