Lines Matching refs:child_pid
145 static volatile pid_t child_pid = -1; variable
454 child_pid = evsel_list->workload.pid; in __run_perf_stat()
509 if (child_pid != -1) in __run_perf_stat()
510 kill(child_pid, SIGTERM); in __run_perf_stat()
562 while (!waitpid(child_pid, &status, WNOHANG)) { in __run_perf_stat()
571 if (child_pid != -1) in __run_perf_stat()
572 wait4(child_pid, &status, 0, &stat_config.ru_data); in __run_perf_stat()
665 if ((child_pid == -1) || stat_config.interval) in skip_signal()
675 child_pid = -1; in skip_signal()
692 if (child_pid != -1) in sig_atexit()
693 kill(child_pid, SIGTERM); in sig_atexit()