#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) { int stat; wait(&stat); printf("wait returned\n"); return(0); }