plan9port

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

tdaemon.c (195B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <thread.h>
      4 
      5 void
      6 proc(void *v)
      7 {
      8 	sleep(5*1000);
      9 	print("still running\n");
     10 }
     11 
     12 void
     13 threadmain(int argc, char **argv)
     14 {
     15 	proccreate(proc, nil, 32768);
     16 }