Home
last modified time | relevance | path

Searched refs:fork_kid_pid (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/syscalls/waitpid/
Dwaitpid11.c67 static int fork_kid_pid[MAXKIDS]; variable
137 fork_kid_pid[kid_count] = ret_val; in main()
149 if (kill(fork_kid_pid[i], SIGINT) < 0) in main()
186 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
196 "%d", k, fork_kid_pid[k]); in main()
245 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
255 "%d", k, fork_kid_pid[k]); in main()
263 memset(fork_kid_pid, 0, sizeof(fork_kid_pid)); in main()
297 if (fork_kid_pid[i] > 0) in cleanup()
298 kill(fork_kid_pid[i], SIGKILL); in cleanup()
Dwaitpid10.c57 static int fork_kid_pid[MAXKIDS]; variable
142 fork_kid_pid[kid_count++] = ret_val; in main()
156 if (kill(fork_kid_pid[i], SIGUSR1) < 0) { in main()
166 while (((ret_val = waitpid(fork_kid_pid[i], in main()
184 if (fork_kid_pid[i] == wait_kid_pid[j]) { in main()
193 fork_kid_pid[i]); in main()
198 fork_kid_pid[k]); in main()
210 memset(fork_kid_pid, 0, sizeof(fork_kid_pid)); in main()
247 if (fork_kid_pid[i] > 0) in cleanup()
248 kill(fork_kid_pid[i], SIGKILL); in cleanup()
Dwaitpid12.c74 int fork_kid_pid[MAXKIDS], wait_kid_pid[MAXKIDS]; in main() local
139 fork_kid_pid[kid_count] = ret_val; in main()
158 if (kill(fork_kid_pid[i], SIGINT) < 0) in main()
197 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
207 "%d", k, fork_kid_pid[k]); in main()
255 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
262 "for the fork_kid_pid of %d", fork_kid_pid[j]); in main()
265 "%d", k, fork_kid_pid[k]); in main()
Dwaitpid13.c74 int fork_kid_pid[MAXKIDS], wait_kid_pid[MAXKIDS]; in main() local
141 fork_kid_pid[kid_count] = ret_val; in main()
161 if (kill(fork_kid_pid[i], SIGINT) < 0) { in main()
219 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
229 "%d", k, fork_kid_pid[k]); in main()
293 if (fork_kid_pid[j] == wait_kid_pid[i]) { in main()
300 "for the fork_kid_pid of %d", fork_kid_pid[j]); in main()
303 "%d", k, fork_kid_pid[k]); in main()
Dwaitpid06.c146 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local
178 fork_kid_pid[kid_count] = ret_val; in do_child_1()
192 if (kill(fork_kid_pid[i], SIGINT) < 0) { in do_child_1()
235 if (fork_kid_pid[j] == wait_kid_pid[i]) { in do_child_1()
248 "%d", k, fork_kid_pid[k]); in do_child_1()
Dwaitpid07.c149 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local
183 fork_kid_pid[kid_count] = ret_val; in do_child_1()
204 if (kill(fork_kid_pid[i], SIGINT) < 0) { in do_child_1()
246 if (fork_kid_pid[j] == wait_kid_pid[i]) { in do_child_1()
259 "%d", k, fork_kid_pid[k]); in do_child_1()
Dwaitpid08.c148 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local
183 fork_kid_pid[kid_count] = ret_val; in do_child_1()
206 if (kill(fork_kid_pid[i], SIGINT) < 0) { in do_child_1()
259 if (fork_kid_pid[j] == wait_kid_pid[i]) { in do_child_1()
271 "%d", k, fork_kid_pid[k]); in do_child_1()