Commit 7c923d3c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

don't make assumptions about pthread_t



git-svn-id: http://www.varnish-cache.org/svn/trunk@2996 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ab7d3f1a
...@@ -140,7 +140,7 @@ client_wait(struct client *c) ...@@ -140,7 +140,7 @@ client_wait(struct client *c)
vtc_log(c->vl, 0, "Client returned \"%s\"", (char *)res); vtc_log(c->vl, 0, "Client returned \"%s\"", (char *)res);
exit (1); exit (1);
} }
c->tp = NULL; c->tp = 0;
} }
/********************************************************************** /**********************************************************************
...@@ -172,7 +172,7 @@ cmd_client(CMD_ARGS) ...@@ -172,7 +172,7 @@ cmd_client(CMD_ARGS)
/* Reset and free */ /* Reset and free */
VTAILQ_FOREACH_SAFE(c, &clients, list, c2) { VTAILQ_FOREACH_SAFE(c, &clients, list, c2) {
VTAILQ_REMOVE(&clients, c, list); VTAILQ_REMOVE(&clients, c, list);
if (c->tp != NULL) if (c->tp != 0)
client_wait(c); client_wait(c);
FREE_OBJ(c); FREE_OBJ(c);
/* XXX: MEMLEAK */ /* XXX: MEMLEAK */
......
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