fix horrible regression in io_select [bug #522] How have it even worked at all...