From a995e477ffb4dd1184da87e9e46a9e57f3178c63 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 1 Oct 2003 02:50:57 +0000 Subject: Various tweaks to make things run on Mac OS. The main change is the use of pthread to implement ffork. --- src/lib9/lock.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/lib9/lock.c') diff --git a/src/lib9/lock.c b/src/lib9/lock.c index 2da73626..5d6f2f3e 100644 --- a/src/lib9/lock.c +++ b/src/lib9/lock.c @@ -8,12 +8,9 @@ _xtas(void *v) { int x; -_ntas++; + _ntas++; x = _tas(v); - if(x == 0 || x == 0xCAFEBABE) - return x; - fprint(2, "%d: tas %p got %ux\n", getpid(), v, x); - abort(); + return x; } int -- cgit v1.2.3