From: "Luke-Jr" <luke@dashjr.org>
To: Mike Galbraith <gleep@gmx.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: pty tcdrain() bug in 2.6.27 to 2.6.30/current
Date: Wed, 10 Jun 2009 01:53:20 -0500 [thread overview]
Message-ID: <200906100153.38925.luke@dashjr.org> (raw)
In-Reply-To: <1244615954.19735.42.camel@marge.simson.net>
On Wednesday 10 June 2009 01:39:14 am Mike Galbraith wrote:
> On Tue, 2009-06-09 at 23:38 -0500, Luke-Jr wrote:
> > tcdrain blocks on ptys since 2.6.27; at least 2.6.26 returns in a timely
> > manner. The following test case reproduces the bug, and hangs only on
> > affected kernels. Examination of 2.6.26 and 2.6.27 suggests the ioctl
> > used by tcdrain underwent a rewrite for 2.6.27, and thus fixing this bug
> > is beyond my capabilities at this time.
>
> It looks to me like it's doing what it should do, and any bug would be
> in kernels before the break handling (by Alan Cox, CC'd) rework.
>
> Disclaimer: My knowledge wrt tty IO approaches 0, but since I burned a
> bit of time rummaging, you get one absolutely free reply.
My knowledge on how it *should* work also approaches 0, but I am unfortunately
faced with a proprietary (user-space) blob GPS driver (which never reads its
NMEA-providing pty) that relies on this behaviour (or gpsd not doing the
tcdrain). However, the manual page for tcdrain says it waits until data is
*trasmitted*, not necessarily received... Not sure if that makes a difference
for this scenario?
Luke
next prev parent reply other threads:[~2009-06-10 6:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 4:38 Luke-Jr
[not found] ` <1244615954.19735.42.camel@marge.simson.net>
2009-06-10 6:53 ` Luke-Jr [this message]
2009-06-10 9:51 ` Alan Cox
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=200906100153.38925.luke@dashjr.org \
--to=luke@dashjr.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=gleep@gmx.de \
--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®