From 1bf00f957489aaa4b56ec3b093c3247d7ecda446 Mon Sep 17 00:00:00 2001 From: Nils Goroll Date: Mon, 19 Feb 2024 16:58:27 +0100 Subject: [PATCH] pthread_cond_{timed,}wait shall not return an error code of [EINTR]. Nitpick noticed during review of #4030 --- bin/varnishd/cache/cache_conn_pool.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/varnishd/cache/cache_conn_pool.c b/bin/varnishd/cache/cache_conn_pool.c index 131fc20da81..3b40dda2164 100644 --- a/bin/varnishd/cache/cache_conn_pool.c +++ b/bin/varnishd/cache/cache_conn_pool.c @@ -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);