die if select(2) results an error.