Re: select for UNIX sockets?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Jun 03 2003 - 09:51:28 EST


On Maw, 2003-06-03 at 01:08, Krzysztof Halasa wrote:
> Hi,
>
> Should something like this work correctly?

Sort of. The wakeup may occur for several reasons and you need to check
the return (for signals). Also the wakeup can occur when there is room
but another thread fills it, or return room but not enough for a large
datagram. Those don't seem to be the case on your example

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



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:20 EST