[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <48F2E450.1070508@skyrush.com>
Date: Mon, 13 Oct 2008 00:01:52 -0600
From: Joe Peterson <joe@...rush.com>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
CC: Linux Kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] fix n_tty/pty input/output buffer full and other misc char
handling
Alan,
As promised, here is a patch to apply after the latest combined echo
buffer patch I recently sent. It fixes a few things, but most
importantly the handling of buffer full tests and cases in which filled
buffers in a stopped tty can create a "gridlock" condition in two cases
(read patch text for more details). Note that the condition can easily
be seen by pasting lots of text into, e.g., "tr 'f' 'F'" after ^S is hit.
One question I have is this: should we also let characters through (so
that ^C, ^Q, etc. can have effect) in non-canonical mode? This would
allow prevention of the gridlocks that still can be invoked when using
stty -icanon in, say, an xterm. For now, I took the conservative route
in this patch, but let me know if a more permissive approach is better.
Thanks, Joe
View attachment "tty-fix-buffer-full-handling.patch" of type "text/plain" (11552 bytes)
Powered by blists - more mailing lists