LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Should nonblocking I/O calls to a disconnected device get an error? [was: Problem: hiddev stops sending events after some error recoveries]
       [not found] <47A3071B.9090908@inti.gov.ar>
@ 2008-02-01 15:27 ` Alan Stern
  0 siblings, 0 replies; only message in thread
From: Alan Stern @ 2008-02-01 15:27 UTC (permalink / raw)
  To: Salvador Eduardo Tropea; +Cc: USB list, Kernel development list

On Fri, 1 Feb 2008, Salvador Eduardo Tropea wrote:

> Now, I tried unplugging the device while executing a NONBLOCKing
> program. I didn't get any I/O error. It means I was wrong about the
> difference between unplugging the device and the effect of a recovery
> like the one I mentioned previously. You are right, but IMHO that's odd,
> the device should also inform I/O error when reading using a NONBLOCKing
> file handler. Currently a program must use blocking reads in order to
> get notified about the problem. It looks bad and lacks consistency. What
> do you think?

I don't know.  Other people have debated this issue in the past, but I 
can't remember what the final decision was or the reasons for it.

Alan Stern


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-01 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <47A3071B.9090908@inti.gov.ar>
2008-02-01 15:27 ` Should nonblocking I/O calls to a disconnected device get an error? [was: Problem: hiddev stops sending events after some error recoveries] Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).