Lines Matching refs:pid
26 int f, pid = fork(); in TEST() local
29 if (!pid) { in TEST()
38 sprintf(mm, "/proc/%d/mem", pid); in TEST()
42 f = kill(pid, SIGCONT); in TEST()
48 int s, k, pid = fork(); in TEST() local
50 if (!pid) { in TEST()
59 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST()
65 ASSERT_NE(k, pid); in TEST()
69 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST()
72 ASSERT_EQ(k, pid); in TEST()
75 k = ptrace(PTRACE_DETACH, pid, 0L, 0L); in TEST()
78 ASSERT_EQ(k, pid); in TEST()