Re: select for UNIX sockets?

Alan Cox (alan@lxorguk.ukuu.org.uk)
03 Jun 2003 15:51:28 +0100


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/