Skip to content

Commit

Permalink
pthread_cond_{timed,}wait shall not return an error code of [EINTR].
Browse files Browse the repository at this point in the history
Nitpick noticed during review of varnishcache#4030
  • Loading branch information
nigoroll committed Feb 19, 2024
1 parent d77da13 commit 1bf00f9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/varnishd/cache/cache_conn_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,6 @@ VCP_Wait(struct worker *wrk, struct pfd *pfd, vtim_real when)
while (pfd->state == PFD_STATE_STOLEN) {
r = Lck_CondWaitUntil(&wrk->cond, &cp->mtx, when);
if (r != 0) {
if (r == EINTR)
continue;
assert(r == ETIMEDOUT);
Lck_Unlock(&cp->mtx);
return (1);
Expand Down

0 comments on commit 1bf00f9

Please sign in to comment.