blob: a5e637188df4b079e22d36f745171896ef4d3b93 [file] [log] [blame]
rscb2cfc4e2003-09-30 17:47:41 +00001#include <lib9.h>
2
3void
4sayhi(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
13int
14main(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}