public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Uncle George <netbeans@gatworks.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-kernel@vger.kernel.org
Subject: Re: SELECT() returns 1 But FIONREAD says (Input/output error)
Date: Fri, 01 Jun 2007 20:02:18 -0400	[thread overview]
Message-ID: <4660B38A.3040908@gatworks.com> (raw)
In-Reply-To: <465F891B.1080103@shaw.ca>

Robert Hancock wrote:

> It's because you haven't done anything to handle the error which is 
> still persisting. Likely the only thing sane you can do in this case is 
> close the fd and try to reopen it later.
> 
This seems to be true, but not for what you might think.

It appears that if u plug the USB/serial device back into the usb-hub, 
the code creates a /dev/ttyUSB1 ( if you have not yet closed the 
disconnected /dev/ttyUSB0. ) When you do close /dev/ttyUSB0, then the 
device is erased from the /dev directory.

Now /dev/ttyUSB1 is the device. And /dev/ttyUSB0 disappeared. This does 
not seem proper. As now the program has no idea or capability to re-open 
the GPS device.

I have been informed that this was an approved kernel feature. Is this 
suppose to happen? Or was it an unintended consequence?

  reply	other threads:[~2007-06-02  0:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4660B38A.3040908@gatworks.com \
    --to=netbeans@gatworks.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox