lkml.org 
[lkml]   [2007]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSELECT() returns 1 But FIONREAD says (Input/output error)
i am using the GARMIN_GPS/usb driver to read a gps receiver.
In testing the ability of my software to recover from various errors, I
try this: unplug the gps/USB cable from the usb hub.

Interestingly enough the thread spins.
the SELECT() waits for something to happen, and I get one channel that
something interesting happened.
Then i try to find out how many chars are in the read buff via FIONREAD.
That call errors out with an i/o error.

Needless to day, the code resets the SELECT parameters, and SELECT is
called again. It again says that something interesting has happened on
that ( i/o errored ) channel. And we now repeat the FIONREAD.

In this case what, will reset the "something interesting has happened"
report from the SELECT call? Will it ever be reset in this case?

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

\
 
 \ /
  Last update: 2007-05-31 20:27    [W:0.043 / U:2.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site