Searched refs:grandchild_pid (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/namespaces/ |
| H A D | nsid_test.c | 677 pid_t grandchild_pid; in TEST_F() local 678 ASSERT_EQ(read(pipefd[0], &grandchild_pid, sizeof(grandchild_pid)), sizeof(grandchild_pid)); in TEST_F() 683 snprintf(path, sizeof(path), "/proc/%d/ns/time", grandchild_pid); in TEST_F() 798 pid_t grandchild_pid; in TEST_F() local 799 ASSERT_EQ(read(pipefd[0], &grandchild_pid, sizeof(grandchild_pid)), sizeof(grandchild_pid)); in TEST_F() 804 snprintf(path, sizeof(path), "/proc/%d/ns/pid", grandchild_pid); in TEST_F()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_autoreap_test.c | 259 pid_t mid_pid, grandchild_pid; in TEST() local 278 grandchild_pid = create_autoreap_child(&gc_pidfd); in TEST() 279 if (grandchild_pid < 0) { in TEST() 285 if (grandchild_pid == 0) { in TEST() 295 snprintf(buf, sizeof(buf), "%d", grandchild_pid); in TEST() 318 grandchild_pid = atoi(buf); in TEST() 319 ASSERT_GT(grandchild_pid, 0); in TEST() 329 pidfd = sys_pidfd_open(grandchild_pid, 0); in TEST() 347 ret = waitpid(grandchild_pid, NULL, WNOHANG); in TEST()
|