Re: Multithread select() bug
From: Andre Ben Hamou
Date: Mon May 10 2004 - 17:01:24 EST
Davide Libenzi wrote:
Try:
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).
Cheers,
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 http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/