diff options
Diffstat (limited to '9psrv.c')
-rw-r--r-- | 9psrv.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,13 +1,14 @@ +#include <error.h> +#include <stdio.h> #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; } |