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/libthread/trend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libthread/trend.c') diff --git a/src/libthread/trend.c b/src/libthread/trend.c index 6f8adcd5..1ccf1a79 100644 --- a/src/libthread/trend.c +++ b/src/libthread/trend.c @@ -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])); } -- cgit v1.2.3