LOCK_RETRIES
if (retval == EAGAIN && retries++ < LOCK_RETRIES) {
} while (retval == -1 && ++retries < LOCK_RETRIES);