summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorglenda <glenda@cirno>2022-09-13 18:30:06 +0000
committerglenda <glenda@cirno>2022-09-13 18:30:06 +0000
commitb7e3d0927fe0821e919ccc4a66ef149bddcc20de (patch)
tree2c6e2e4fa7d31d3443dab3c0799bb6a44f60bcde /main.c
parent34adf252d179556df7d8277370e735c56c6ab3f5 (diff)
Switch to rfork instead of libthread
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 4931920..3da4841 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
#include <u.h>
#include <libc.h>
-#include <thread.h>
#include <bio.h>
#include <pool.h>
@@ -12,7 +11,7 @@ static Rune *startfile = L"/sys/lib/apl/runtime/start.apl";
static Rune *stdlibfile = L"/sys/lib/apl/runtime/stdlib.apl";
void
-threadmain(int argc, char *argv[])
+main(int argc, char *argv[])
{
int off = 0;
stdin = Bfdopen(0, OREAD);
@@ -61,7 +60,7 @@ restart:
print("Unfreed datums: %d\n", datumalloccounts);
*/
}
- threadexitsall(nil);
+ exits(nil);
}
Datum *