> I think that the fix to send tty_hangup when the USB-to-serial adapter
is
 > disconnected really should go in (there was about a 2-line patch posted
a
 > while ago to add this). The application I'm working on required this
patch
 > in order to detect that the USB serial port it's talking to has been
 > disconnected from the machine - otherwise the behavior you get is
rather
 > silly, if you're blocked on a read it never returns after the device
was
 > unplugged, and writes return -ENODEV; basically if you don't write
anything
 > there is no way whatsoever to detect that the port is gone. It sounds
like
 > the poster's application is another where the current behavior of the
USB
 > serial driver makes things a real pain..

I *strongly* agree with this! I have exactly the same problem. I'm
blocking on a select to wait for something to happen at ttyUSBx and
my application will block forever when the device gets unplugged.
A tty hangup would be very much welcome in such a situation.

Regards
  Joerg

BTW: Where is the 2 line patch to add this?

=====
-- 
Regards
       Joerg



        

        
                
___________________________________________________________
Bestellen Sie Y! DSL und erhalten Sie die AVM "FritzBox SL" für 0€.
Sie sparen 119€ und bekommen 2 Monate Grundgebührbefreiung.
http://de.adsl.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to