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:
rsc
2003-10-01 02:50:57 +00:00
parent e182749a98
commit a995e477ff
12 changed files with 84 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ threadmain(int argc, char **argv)
c[1] = chancreate(sizeof(ulong), 1);
c[2] = c[0];
threadcreate(pingpong, c, 16384);
proccreate(pingpong, c, 16384);
threadcreate(pingpong, c+1, 16384);
sendul(c[0], atoi(argv[1]));
}