/* getppid: print a child's and its parent's process ID numbers */ /* Paul Krzyzanowski */ #include /* needed to define exit() */ #include /* needed to define getpid() */ #include /* needed for printf() */ int main(int argc, char **argv) { printf("my process ID is %d\n", getpid()); printf("my parent's process ID is %d\n", getppid()); exit(0); }