Re: Multithread select() bug

From: Andre Ben Hamou
Date: Mon May 10 2004 - 17:01:24 EST

Davide Libenzi wrote:

select (socket + 1, &fds, &fds, &fds, &timeout);

That does work, but only as a workaround (and not a universally applicable one). Select *should* return upon the closure of either end of a socket connection that is in the read-FD-set only (unless I've completely misunderstood the various references).


Andre Ben Hamou
Imperial College London


...and, on the seventh day, God switched off his Mac.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at