From: Andi Kleen <andi@firstfloor.org>
To: linux-kernel@vger.kernel.org, peter@hurleysoftware.com,
gregkh@linuxfoundation.org
Cc: viro@zeniv.linux.org.uk
Subject: pty FIONREAD returning zero breaks emacs in 3.11rc3
Date: Fri, 9 Aug 2013 23:11:26 +0200 [thread overview]
Message-ID: <20130809211126.GF19750@two.firstfloor.org> (raw)
When I run emacs over ssh terminal (no X) on 3.11-rc3 it often ignores key
strokes. I first thought the system was busy or so, but when
stracing the emacs it was not blocked.
Here's a typical sequence. select/SIGIO wakes it up, but then
FIONREAD returns 0.
I'm not fully sure when it started.
It does not happen all the time, but is quite frequent.
ioctl(3, FIONREAD, [0]) = 0
pselect6(4, [3], [], NULL, {17, 952336932}, {NULL, 8}) = 1 (in [3], left
{17, 504942810})
--- SIGIO {si_signo=SIGIO, si_code=SI_KERNEL} ---
rt_sigreturn() = 1
ioctl(3, FIONREAD, [0]) = 0
ioctl(3, FIONREAD, [0]) = 0
pselect6(4, [3], [], NULL, {17, 504298807}, {NULL, 8}) = ?
ERESTARTNOHAND (Interrupted by signal)
--- SIGIO {si_signo=SIGIO, si_code=SI_KERNEL} ---
rt_sigreturn() = -1 EINTR (Interrupted system
call)
ioctl(3, FIONREAD, [0]) = 0
pselect6(4, [3], [], NULL, {17, 103972440}, {NULL, 8}) = 1 (in [3], left
{16, 864890560})
--- SIGIO {si_signo=SIGIO, si_code=SI_KERNEL} ---
rt_sigreturn() = 1
--
ak@linux.intel.com -- Speaking for myself only.
next reply other threads:[~2013-08-09 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 21:11 Andi Kleen [this message]
2013-08-13 1:43 ` pty FIONREAD returning zero breaks emacs in 3.11rc3 Peter Hurley
2013-08-13 22:03 ` Andi Kleen
2013-08-14 16:07 ` Peter Hurley
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=20130809211126.GF19750@two.firstfloor.org \
--to=andi@firstfloor.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter@hurleysoftware.com \
--cc=viro@zeniv.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.