#include /* printf, etc */ #include /* almost always need this with system programming */ #include /* fork, getpid, getppid */ /* very simple forking program - the parent and child each print pid and then quit */ int main(int argc, char **argv) { fork(); printf("My pid is %u and my parent is %u \n",getpid(),getppid()); return(0); }