diff --git a/src/ssdd/ssdd.c b/src/ssdd/ssdd.c index 68a4262..4e29358 100644 --- a/src/ssdd/ssdd.c +++ b/src/ssdd/ssdd.c @@ -144,7 +144,6 @@ static int forktests(int testid) struct sigaction act, oact; parent = getpid(); - printf("forktest#%d/%d: STARTING\n", testid, parent); child = fork(); if (child == -1) { @@ -155,6 +154,8 @@ static int forktests(int testid) if (!child) child_process(); + printf("forktest#%d/%d/%d: STARTING\n", testid, parent, child); + act.sa_sigaction = sigchld; sigemptyset(&act.sa_mask); act.sa_flags = SA_SIGINFO; @@ -275,6 +276,7 @@ int main(int argc, char **argv) if (argc) nsteps = atoi(*argv); } + printf("#main : %d\n", getpid()); printf("#forks: %d\n", nforks); printf("#steps: %d\n", nsteps); printf("\n");