Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
532dcd3f
Commit
532dcd3f
authored
Feb 22, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close a one-in-a-billion risk of unwarranted panic.
Spotted by: Rasmus Villemoes
parent
c1e79404
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cache_lck.c
bin/varnishd/cache/cache_lck.c
+1
-1
No files found.
bin/varnishd/cache/cache_lck.c
View file @
532dcd3f
...
@@ -218,7 +218,7 @@ Lck_CondWait(pthread_cond_t *cond, struct lock *lck, vtim_real when)
...
@@ -218,7 +218,7 @@ Lck_CondWait(pthread_cond_t *cond, struct lock *lck, vtim_real when)
assert
(
when
>
1e9
);
assert
(
when
>
1e9
);
ts
.
tv_nsec
=
(
long
)(
modf
(
when
,
&
t
)
*
1e9
);
ts
.
tv_nsec
=
(
long
)(
modf
(
when
,
&
t
)
*
1e9
);
ts
.
tv_sec
=
(
long
)
t
;
ts
.
tv_sec
=
(
long
)
t
;
assert
(
ts
.
tv_nsec
>=
0
&&
ts
.
tv_nsec
<
999999999
);
assert
(
ts
.
tv_nsec
>=
0
&&
ts
.
tv_nsec
<
=
999999999
);
errno
=
pthread_cond_timedwait
(
cond
,
&
ilck
->
mtx
,
&
ts
);
errno
=
pthread_cond_timedwait
(
cond
,
&
ilck
->
mtx
,
&
ts
);
#if defined (__APPLE__)
#if defined (__APPLE__)
if
(
errno
==
EINVAL
&&
when
>
VTIM_real
())
{
if
(
errno
==
EINVAL
&&
when
>
VTIM_real
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment