URI:
       ttestfork.c - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       ttestfork.c (337B)
       ---
            1 #include <lib9.h>
            2 
            3 void
            4 sayhi(void *v)
            5 {
            6         USED(v);
            7 
            8         print("hello from subproc\n");
            9         print("rendez got %lu from main\n", rendezvous(0x1234, 1234));
           10         exits(0);
           11 }
           12 
           13 int
           14 main(int argc, char **argv)
           15 {
           16         print("hello from main\n");
           17         ffork(RFMEM|RFPROC, sayhi, nil);
           18 
           19         print("rendez got %lu from subproc\n", rendezvous(0x1234, 0));
           20         exits(0);
           21 }