ttexit.c - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
ttexit.c (205B)
---
1 #include <u.h>
2 #include <libc.h>
3 #include <thread.h>
4
5 void
6 f(void *v)
7 {
8 USED(v);
9
10 recvp(chancreate(sizeof(void*), 0));
11 }
12
13 void
14 threadmain(int argc, char **argv)
15 {
16 proccreate(f, nil, 32000);
17 exit(1);
18 }