Commit 3a0d628c authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Don't assert on sleep failure due to signals in VSL library (some

utils expect to receive SIGHUP).

Fixes: #947
parent fe7e315c
......@@ -184,7 +184,7 @@ vsl_nextlog(struct vsl *vsl, uint32_t **pp)
if (vsl->flags & F_NON_BLOCKING)
return (-1);
w += SLEEP_USEC;
AZ(usleep(SLEEP_USEC));
assert(usleep(SLEEP_USEC) == 0 || errno == EINTR);
continue;
}
*pp = (void*)(uintptr_t)vsl->log_ptr; /* Loose volatile */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment