Commit 387d1509 authored by Rusty Russell's avatar Rusty Russell

Adapt antithread to new talloc locking, and fix so talloc destructor

works.
parent d65da2db
This diff is collapsed.
......@@ -20,8 +20,8 @@ int main(int argc, char *argv[])
assert(atp);
pid = talloc(at_pool_ctx(atp), int);
assert(pid);
ok1((char *)pid >= (char *)atp->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize);
ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
at = at_run(atp, test, pid);
assert(at);
......
......@@ -26,8 +26,8 @@ int main(int argc, char *argv[])
assert(atp);
pid = talloc(at_pool_ctx(atp), int);
assert(pid);
ok1((char *)pid >= (char *)atp->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize);
ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
/* This is a failed spawn. */
at = at_spawn(atp, pid, bad_args);
......
......@@ -21,8 +21,8 @@ int main(int argc, char *argv[])
assert(atp);
pid = talloc(at_pool_ctx(atp), int);
assert(pid);
ok1((char *)pid >= (char *)atp->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize);
ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
at = at_run(atp, test, pid);
assert(at);
......
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