summaryrefslogtreecommitdiff
path: root/sys/src/lib9p/threadsrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/lib9p/threadsrv.c')
-rw-r--r--sys/src/lib9p/threadsrv.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/src/lib9p/threadsrv.c b/sys/src/lib9p/threadsrv.c
new file mode 100644
index 000000000..f892f5195
--- /dev/null
+++ b/sys/src/lib9p/threadsrv.c
@@ -0,0 +1,13 @@
+#include <u.h>
+#include <libc.h>
+#include <fcall.h>
+#include <thread.h>
+#include <9p.h>
+
+void
+threadsrv(Srv *s)
+{
+ if(s->forker == nil)
+ s->forker = threadsrvforker;
+ srv(s);
+}