Thread (4 messages) flat view 4 messages, 2 authors, 2009-08-02

Re: [PATCH 2.6.31-rc4] gigaset: really fix chars_in_buffer

From: Alan Cox <hidden>
Date: 2009-08-01 16:10:46
Also in: lkml

On Sat,  1 Aug 2009 14:18:51 +0200 (CEST)
Tilman Schmidt [off-list ref] wrote:
This patch corrects the problem noted but left unfixed by commit
23198fda7182969b619613a555f8645fdc3dc334 "tty: fix chars_in_buffers".
The tty_operation chars_in_buffer() should return zero, not a
negative value, in the error case.
Is that correct. If you take a signal so the mutex_lock_interruptible
takes the error path we'll exit any waits for characters to be flushed
from buffers and lose the bytes in some cases ? Thats why I didn't
convert it - I didn't understand why it was using _interruptible at all ?

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help