lkml.org 
[lkml]   [2008]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: + n_tty-loss-of-sync-following-a-buffer-overflow.patch added to -mm tree
From
Date
> Paul Fulghum wrote:
> > What I suggest is the following patch for processing NL
> > in canonical mode.

I tested the patch in 2.4.x and seems to meet all the discussed
requirements.

I have another suggestion to this subject. When the buffer oveflows in
icaonon mode, it would be *best* if the application either gets a
complete line or does not get it at all. On a buffer overflow, it would
be good that the n_tty discard the whole line data in the buffer (part
of which has overflown) and make more room in the buffer.

Does it make sense to any of you?

--
Rupesh Sugathan



\
 
 \ /
  Last update: 2008-03-12 22:23    [W:0.333 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site