aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/test/texit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/test/texit.c')
-rw-r--r--src/libthread/test/texit.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libthread/test/texit.c b/src/libthread/test/texit.c
new file mode 100644
index 00000000..fc2ebb52
--- /dev/null
+++ b/src/libthread/test/texit.c
@@ -0,0 +1,18 @@
+#include <u.h>
+#include <libc.h>
+#include <thread.h>
+
+void
+f(void *v)
+{
+ USED(v);
+
+ recvp(chancreate(sizeof(void*), 0));
+}
+
+void
+threadmain(int argc, char **argv)
+{
+ proccreate(f, nil, 32000);
+ exit(1);
+}