summaryrefslogtreecommitdiff
path: root/srv9p.c
diff options
context:
space:
mode:
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;
+}