[master] 58f90420a Duh! Also pass the condattr to the init call.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Oct 11 21:55:10 UTC 2021
commit 58f90420a41b275eb5f1c86d8912e299398b9b7f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Oct 11 21:54:42 2021 +0000
Duh! Also pass the condattr to the init call.
Spotted by: Dridi
diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 365ac2a84..71f7a4d98 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -492,7 +492,7 @@ main(int argc, char **argv)
AN(vut);
AZ(pthread_condattr_init(&ca));
AZ(pthread_condattr_setclock(&ca, CLOCK_MONOTONIC));
- AZ(pthread_cond_init(&timebend_cv, NULL));
+ AZ(pthread_cond_init(&timebend_cv, &ca));
while ((i = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
switch (i) {
More information about the varnish-commit
mailing list