#include #include main() { int childid; int parentid = getppid(); childid = fork(); if (childid == 0) /* this is the parent process */ { printf("Created a child process\n"); } else /* this is the child process */ { //something being called execl ("./child", "red", "white", "blue", NULL); } //Why is this thing skipped? Shouldn't it wait indefinately //since parentid+100 doesn't have any child that it is waiting on ? waitpid(parentid+100); }