removed debug print and code format

This commit is contained in:
Dominik Maier
2020-07-16 02:27:07 +02:00
parent f465a75b65
commit 0b0366d9b4
2 changed files with 3 additions and 3 deletions

View File

@ -37,8 +37,6 @@ __attribute__((constructor)) void preeny_fork_orig() {
pid_t fork(void) {
printf("called fork. forked state is %d\n", (int) forked);
fflush(stdout);
/* If we forked before, or if we're in the child (pid==0),
we don't want to fork anymore, else, we are still in the forkserver.
The forkserver parent needs to fork infinite times, each child should never

View File

@ -37,10 +37,12 @@ int main(int argc, char **argv) {
} else {
printf("We are in the parent - defork didn't work! :( (pid=%d)\n", (int) pid);
printf("We are in the parent - defork didn't work! :( (pid=%d)\n",
(int)pid);
}
return 0;
}