Various tweaks to make things run on Mac OS.
The main change is the use of pthread to implement ffork.
This commit is contained in:
parent
e182749a98
commit
a995e477ff
12 changed files with 84 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue