diff options
author | rsc <devnull@localhost> | 2005-01-04 22:15:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-04 22:15:53 +0000 |
commit | f6127ed2092be2bf08481766a2c23dee6b955437 (patch) | |
tree | 85feb0423f3e5eba2ff1bd98593929d5dcda73df /src/libthread/test/texit.c | |
parent | ed01060152eba67eaa0f16605563c2de333d938d (diff) | |
download | plan9port-f6127ed2092be2bf08481766a2c23dee6b955437.tar.gz plan9port-f6127ed2092be2bf08481766a2c23dee6b955437.tar.bz2 plan9port-f6127ed2092be2bf08481766a2c23dee6b955437.zip |
more tests
Diffstat (limited to 'src/libthread/test/texit.c')
-rw-r--r-- | src/libthread/test/texit.c | 18 |
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); +} |