Revert "varnishtest: Bandaid for an uninitialized mutex"

Fix in next commit

This reverts commit f855fa46.
parent 2e847292
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment