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
518a64d7
Unverified
Commit
518a64d7
authored
Jan 12, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "varnishtest: Bandaid for an uninitialized mutex"
Fix in next commit This reverts commit
f855fa46
.
parent
2e847292
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vtc.c
bin/varnishtest/vtc.c
+3
-4
No files found.
bin/varnishtest/vtc.c
View file @
518a64d7
...
...
@@ -139,12 +139,9 @@ extmacro_def(const char *name, const char *fmt, ...)
/**********************************************************************
* Below this point is run inside the testing child-process.
*
* XXX: This is no longer the case for macro_get() that is currently
* used in the main process.
*/
static
pthread_mutex_t
macro_mtx
=
PTHREAD_MUTEX_INITIALIZER
;
static
pthread_mutex_t
macro_mtx
;
static
void
init_macro
(
void
)
...
...
@@ -154,6 +151,8 @@ init_macro(void)
/* Dump the extmacros for completeness */
VTAILQ_FOREACH
(
m
,
&
macro_list
,
list
)
vtc_log
(
vltop
,
4
,
"extmacro def %s=%s"
,
m
->
name
,
m
->
val
);
AZ
(
pthread_mutex_init
(
&
macro_mtx
,
NULL
));
}
void
...
...
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