public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <8qXzx-jY-31@gated-at.bofh.it>]
* SELECT() returns 1 But FIONREAD says (Input/output error)
@ 2007-05-31 18:17 Uncle George
  2007-06-01  1:01 ` David Schwartz
  0 siblings, 1 reply; 12+ messages in thread
From: Uncle George @ 2007-05-31 18:17 UTC (permalink / raw)
  To: linux-kernel

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?


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-06-02  0:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.qaWJQn9l1jDV+N9wFv9WqATf44U@ifi.uio.no>
     [not found] ` <fa.pq45zUHWQMSHoRGL/M4uTPfFWHg@ifi.uio.no>
2007-06-01  2:48   ` SELECT() returns 1 But FIONREAD says (Input/output error) Robert Hancock
2007-06-02  0:02     ` Uncle George
     [not found] <8qXzx-jY-31@gated-at.bofh.it>
2007-06-01 12:19 ` Bodo Eggert
2007-05-31 18:17 Uncle George
2007-06-01  1:01 ` David Schwartz
2007-06-01  1:53   ` Uncle George
2007-06-01 16:43     ` David Schwartz
2007-06-01 17:07       ` Uncle George
2007-06-01 17:33         ` David Schwartz
2007-06-01 20:04           ` Uncle George
2007-06-01 22:03             ` David Schwartz
2007-06-01 12:01   ` Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox