Avoid calling select() with an error pointlessly.

It's just a spin loop unfortunately anyway.