Re: Changes in the sockets: SIGIO handling

From: kuznet@ms2.inr.ac.ru
Date: Tue Mar 07 2000 - 13:32:41 EST


Hello!

> If you've got a partial read's worth of data pending, you shouldn't be
> sleeping.

1. MSG_WAITALL
2. SO_RCVLOWAT
3. write(), which always implies not-existing MSG_WRITEALL.

> empty when you went to sleep), you should wake up and return -EINTR,

And lose the event in any case.

> Well you don't have to do that, but that allows you to avoid this
> particular "event lost" bug.

Listen, I do not try to prove that it is a "bug". 8)

I try to argue exactly that over-signaling proposed here as "good thing"
is true bug.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:23 EST