diff options
author | glenda <glenda@cirno> | 2022-09-13 18:30:06 +0000 |
---|---|---|
committer | glenda <glenda@cirno> | 2022-09-13 18:30:06 +0000 |
commit | b7e3d0927fe0821e919ccc4a66ef149bddcc20de (patch) | |
tree | 2c6e2e4fa7d31d3443dab3c0799bb6a44f60bcde /main.c | |
parent | 34adf252d179556df7d8277370e735c56c6ab3f5 (diff) |
Switch to rfork instead of libthread
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 * |