Skip to content
Permalink
Browse files

Add an assert to try to catch #1853

  • Loading branch information...
bsdphk committed Aug 22, 2019
1 parent eaaa5f5 commit eed8289377394440c6c111f431f031735485d5ac
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/varnishd/cache/cache_lck.c
@@ -212,6 +212,7 @@ Lck_CondWait(pthread_cond_t *cond, struct lock *lck, vtim_real when)
assert(when > 1e9);
ts.tv_nsec = (long)(modf(when, &t) * 1e9);
ts.tv_sec = (long)t;
assert(ts.tv_nsec >= 0 && ts.tv_nsec < 999999999);
errno = pthread_cond_timedwait(cond, &ilck->mtx, &ts);
assert(errno == 0 ||
errno == ETIMEDOUT ||

0 comments on commit eed8289

Please sign in to comment.
You can’t perform that action at this time.