plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

texit.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 }