|Welcome to the Monastery|
Re^11: Does IO::Select work? (perfect)by BrowserUk (Pope)
|on Oct 25, 2012 at 07:42 UTC||Need Help??|
it is strange and confusing when in this case one of the libraries is called "broken".
But it *IS* broken. Not because it doesn't remove a closed filehandle from the select set; but because it *SILENTLY* ignores the request to do so.
As I said way back up there^, with added emphasis:
Even a simple warning that you've made an attempt to remove a closed handle would help; but it isn't hard to fall back on a linear search of the array of file handles and relate their position in the array back to a fileno and hence bit vector bit.
The API is remove() not removeOrDoNothing().
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.