mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joerg Pommnitz <pommnitz@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: select(2), usbserial, tty's and disconnect
Date: Wed, 9 Mar 2005 10:53:36 +0100 (CET)	[thread overview]
Message-ID: <20050309095336.48054.qmail@web51401.mail.yahoo.com> (raw)

Robert Hancock wrote:
> There was discussion at one point about doing a tty_hangup() when the  >
USB device was disconnected (this causes the read() to return with 0  >  >
bytes and future open attempts to fail), and a patch was put out to do  >
this. I thought this had been merged, but I could be wrong.

Well, I observed the hanging select with SuSE kernel 2.6.8-24.11, so it is
fairly current. I'm seeing this problem with an Option Wireless UMTS data
card. This card is interesting. It is a CardBus card that presents a USB
OHCI hub to the system. Internally it claims to plug in a USB serial
connector. If you issue a RESET AT command, the kernel tells me that the
USB device virtually plugged into the hub got disconnected. A few seconds
later the gets plugged in again. At this point I would have to reopen the
tty. Unfortunately the disconnect event does not propagate to the
application. I could poke the tty to see whether it is still really there,
but this seems quite hackish.

Regards
  Joerg


	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

             reply	other threads:[~2005-03-09  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-09  9:53 Joerg Pommnitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09 10:10 Joerg Pommnitz
     [not found] <3FPL5-7pH-29@gated-at.bofh.it>
2005-03-09  1:54 ` Robert Hancock
2005-03-08 16:19 Joerg Pommnitz
2005-03-08 16:25 ` linux-os

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=20050309095336.48054.qmail@web51401.mail.yahoo.com \
    --to=pommnitz@yahoo.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

all inboxes | Powered by JetHome®