Messages in this thread | | | Date | Tue, 30 Dec 2008 13:44:27 +0000 | From | Alan Cox <> | Subject | Re: [BUG?] tty doesn't handle ^D at cooked/non-cooked switching corner case |
| |
On Tue, 30 Dec 2008 21:00:23 +0900 (JST) KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
> Hi tty expert, > > Recently, ruby (scripting program language) developing group found > that linux doesn't handle ^D properly at cooked/non-cooked switching > corner case.
I don't believe the behaviour of input characters typed across that boundary is defined by the standards at all. That said I think the behaviour you expect is reasonable.
> They create following patch. is it right way?
You could recompute minimum in this case but zero is definitely incorrect. I think what you would actually need to do is to extract out the code just below do_it_again: which computes minimum and recompute it properly.
Alan
| |