aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/defork/defork.c2
-rw-r--r--examples/defork/forking_target.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/defork/defork.c b/examples/defork/defork.c
index 46810326..f71d1124 100644
--- a/examples/defork/defork.c
+++ b/examples/defork/defork.c
@@ -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
diff --git a/examples/defork/forking_target.c b/examples/defork/forking_target.c
index ff1d6e37..98f6365a 100644
--- a/examples/defork/forking_target.c
+++ b/examples/defork/forking_target.c
@@ -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;
}
+