From 690a9d955e65608b96fad34a2b31e639223798aa Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 18 Sep 2024 00:04:10 -0600 Subject: wip --- 9psrv.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '9psrv.c') diff --git a/9psrv.c b/9psrv.c index e120eff..5b8cf82 100644 --- a/9psrv.c +++ b/9psrv.c @@ -1,13 +1,14 @@ +#include +#include #include "coroutine.h" #include "net9p.h" int main() { coroutine_init(); - net9p_listen_stack_t stack = {0}; - coroutine_add(net9p_listen_cr, &stack); + if (!coroutine_add(net9p_listen_cr, NULL)) + error(1, 0, "coroutine_add(net9p_listen_cr, NULL)"); - for (;;) { - coroutine_task(); - } + coroutine_main(); + return 1; } -- cgit v1.2.3-2-g168b