#include
#include
#include
#include
int main(){
int pid;
alarm(9);
pid=fork();
if(pid==0){
alarm(5);
printf(“I am the child\n”);
sleep(2);
execlp(“./donothing”,”donothing”,NULL);
}
else while(1){
printf(“I am the parent, child pid=%d\n”, pid);
sleep(1);
}
}