Sunday, 29 September 2013

Error with child process & wait `C`

Error with child process & wait `C`

In the below code, if there is a problem creating a child process or
something happens to the child process what happens to wait(&status)?
pid_t pid;
int status;
if(pid=fork()>0){
printf("Parent Process\n");
wait(&status);
} else... child process here

No comments:

Post a Comment