Message ID | 20220209221849.434616-5-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dbench: few enhancements from mmtests | expand |
diff --git a/child.c b/child.c index 828295d..7abb238 100644 --- a/child.c +++ b/child.c @@ -371,6 +371,10 @@ again: nb_time_reset(child); } + if (getppid() != parent) { + exit(1); + } + gettimeofday(&start, NULL); while (gzgets(gzf, line, sizeof(line)-1)) { @@ -384,10 +388,6 @@ again: params = sparams; - if (kill(parent, 0) == -1) { - exit(1); - } - loop_again: /* if this is a "LOOP <xxx>" line, * remember the current file position and move to the next line