Fix eintr

When we caught an EINTR during a select we should retry instead of returning an error