Ensure that IO#select is never called with negative value