Skip to content
Snippets Groups Projects
Commit 4ff14b90 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

- Implemented OS ass3 step 6 correctly by moving wait-statement.

parent 06da5243
No related branches found
No related tags found
No related merge requests found
......@@ -170,12 +170,12 @@ main(int argc, char * argv[])
perror("Cannot write to pipe \n");
exit(1);
}
if( c == 'P' )
wait(NULL);
}
else
{
if( c == 'P' )
wait(NULL);
pid_t child_id;
kiddoCount++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment