Lines Matching defs:child_pid
430 static void parent(int child_pid, struct bpffs_opts *bpffs_opts, int sock_fd)
456 err = wait_for_pid(child_pid);
465 if (child_pid > 0)
466 (void)kill(child_pid, SIGKILL);
473 int child_pid = 0, err;
479 child_pid = fork();
480 if (!ASSERT_GE(child_pid, 0, "fork"))
483 if (child_pid == 0) {
489 return parent(child_pid, bpffs_opts, sock_fds[0]);
495 if (child_pid > 0)
496 (void)kill(child_pid, SIGKILL);