I thought socket handle on BeOS is not file descripter neighter. (I'm
not sure BeOS is still supported or not)
>Another solution would be to reuse code from Modules/selectmodule.c.
You mean this code?
if (v < 0 || v >= FD_SETSIZE) {
PyErr_SetString(PyExc_ValueError,
"filedescriptor out of range in select()");
goto finally;
}
Cygwin's thread is somewhat troublesome, so I'm not sure I can test this
issue on cygwin but, (I'm now building python --with-threads) if clash
happens in conn_poll(_multiprocessing/connection.h)'s FD_SET, I think
this kind of check is needed... (At least safer) |