Commit f9a481b0 authored by Taddeüs Kroes's avatar Taddeüs Kroes

- Used kiddoCount instead of getpid().

parent 4ff14b90
......@@ -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);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment