Tim Robbins wrote:

On Fri, Jan 10, 2003 at 01:30:16AM -0800, Juli Mallett wrote:


>Lately, the data field for sockets, which holds bytes ready (in the EVFILT_
>READ case) to be read, is computed to be zero. This means that if you have
>a low watermark which is >0 per the kq, THE EVENT WILL NEVER HAPPEN. Not to
>mention that this means when the event IS triggered properly (if you can
>call it that), it is always said to have =ZERO= bytes ready.

[...]

I can definitely reproduce this here and also fairly angry about it.
In addition to what you mentioned, fstat() gives an incorrect st_size
result now and it's likely that non-NOTE_LOWAT low watermarks are
firing too early as well.

Ugly test program @ http://people.freebsd.org/~tjr/kq.c
If I ensure the write only happens after the child is waiting on kq, the bug does not show up for me.

--
Daniel C. Sobral (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
TCO
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Outros:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On Monday mornings I am dedicated to the
proposition that all men are created jerks.
-- H. Allen Smith, "Let the Crabgrass Grow"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Reply via email to