Lines Matching refs:child_pid
432 static void parent(int child_pid, struct bpffs_opts *bpffs_opts, int sock_fd) in parent() argument
458 err = wait_for_pid(child_pid); in parent()
466 if (child_pid > 0) in parent()
467 (void)kill(child_pid, SIGKILL); in parent()
474 int child_pid = 0, err; in subtest_userns() local
480 child_pid = fork(); in subtest_userns()
481 if (!ASSERT_GE(child_pid, 0, "fork")) in subtest_userns()
484 if (child_pid == 0) { in subtest_userns()
490 return parent(child_pid, bpffs_opts, sock_fds[0]); in subtest_userns()
496 if (child_pid > 0) in subtest_userns()
497 (void)kill(child_pid, SIGKILL); in subtest_userns()