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

- Used kiddoCount instead of getpid().

parent 4ff14b90
No related branches found
No related tags found
No related merge requests found
......@@ -189,11 +189,11 @@ main(int argc, char * argv[])
perror("Child could not be created \n");
exit(1);
case 0:
gup(log1, log2, pipe_id, getpid());
gup(log1, log2, pipe_id, kiddoCount);
break;
default:
fprintf(log1, "Started child process %d \n", child_id);
fprintf(log2, "Started child process %d \n", child_id);
fprintf(log1, "Started child process %d with id %d \n", kiddoCount, child_id);
fprintf(log2, "Started child process %d with id %d \n", kiddoCount, child_id);
}
}
}
......
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