Optimise handling of select() returning <= 0.