summaryrefslogtreecommitdiff
path: root/srv9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-19 20:02:56 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-19 20:02:56 -0600
commit3272b32551f515fcbe4b59f22e05f0f54b3d1259 (patch)
treef7b7de6edd169929faa41431d10fe3ce5ca94d6b /srv9p.c
parentf24523d46c4da32870e3368f4e0caecafb19090f (diff)
move tihngs around
Diffstat (limited to 'srv9p.c')
-rw-r--r--srv9p.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/srv9p.c b/srv9p.c
new file mode 100644
index 0000000..489b33e
--- /dev/null
+++ b/srv9p.c
@@ -0,0 +1,12 @@
+#include <error.h>
+#include <stdio.h>
+#include "coroutine.h"
+#include "net9p.h"
+
+int main() {
+ if (!coroutine_add(net9p_listen_cr, NULL))
+ error(1, 0, "coroutine_add(net9p_listen_cr, NULL)");
+
+ coroutine_main();
+ return 1;
+}