Lines Matching defs:child_pid
429 static void parent(int child_pid, struct bpffs_opts *bpffs_opts, int sock_fd)
455 err = wait_for_pid(child_pid);
464 if (child_pid > 0)
465 (void)kill(child_pid, SIGKILL);
472 int child_pid = 0, err;
478 child_pid = fork();
479 if (!ASSERT_GE(child_pid, 0, "fork"))
482 if (child_pid == 0) {
488 return parent(child_pid, bpffs_opts, sock_fds[0]);
494 if (child_pid > 0)
495 (void)kill(child_pid, SIGKILL);