Searched refs:child_pid (Results 1 - 25 of 107) sorted by relevance

12345

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D1-1.c46 int result, child_pid, tmp_errno, policy; local
51 child_pid = fork();
52 if (child_pid == -1) {
55 } else if (child_pid == 0) {
59 if (sched_getparam(child_pid, &param) != 0) {
61 kill(child_pid, SIGUSR1);
80 result = sched_setparam(child_pid, &param);
83 if (sched_getparam(child_pid, &param) != 0) {
85 kill(child_pid, SIGUSR1);
91 kill(child_pid, SIGUSR
[all...]
H A D23-7.c25 int child_pid, stat_loc, old_priority; local
34 child_pid = fork();
35 if (child_pid == -1) {
38 } else if (child_pid == 0) {
50 sched_setparam(child_pid, &param);
H A D27-1.c28 int result, child_pid, stat_loc; local
36 child_pid = fork();
37 if (child_pid == -1) {
40 } else if (child_pid == 0) {
51 result = sched_setparam(child_pid, &param);
H A D9-1.c98 static void kill_children(int *child_pid, int count) argument
103 kill(child_pid[i], SIGTERM);
104 free(child_pid);
109 int *child_pid, oldcount, newcount, shm_id, i; local
126 child_pid = malloc(nb_cpu * sizeof(int));
156 child_pid[i] = fork();
157 if (child_pid[i] == -1) {
159 kill_children(child_pid, i);
161 } else if (child_pid[i] == 0) {
170 child_pid[
[all...]
H A D2-2.c88 int *child_pid; local
109 child_pid = malloc(nb_child * sizeof(int));
110 if (child_pid == NULL) {
136 child_pid[i] = fork();
137 if (child_pid[i] == -1) {
140 } else if (child_pid[i] == 0) {
163 if (kill(child_pid[nb_child - 1], SIGTERM) != 0) {
178 if (kill(child_pid[i], SIGKILL) != 0) {
H A D2-1.c87 int *child_pid; local
108 child_pid = malloc(nb_child * sizeof(int));
132 child_pid[i] = fork();
133 if (child_pid[i] == -1) {
136 } else if (child_pid[i] == 0) {
159 if (kill(child_pid[nb_child - 1], SIGTERM) != 0) {
174 if (kill(child_pid[i], SIGKILL) != 0) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
H A D4-1.c28 int result = -1, child_pid; local
32 child_pid = fork();
33 if (child_pid == -1) {
36 } else if (child_pid == 0) {
47 result = sched_getparam(child_pid, &param);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/
H A D5-1.c27 int result = -1, child_pid; local
31 child_pid = fork();
32 if (child_pid == -1) {
35 } else if (child_pid == 0) {
46 result = sched_getscheduler(child_pid);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D21-1.c27 int result, child_pid, stat_loc; local
33 child_pid = fork();
34 if (child_pid == -1) {
37 } else if (child_pid == 0) {
48 result = sched_setscheduler(child_pid, SCHED_FIFO, &param);
H A D17-7.c34 int child_pid, stat_loc; local
58 child_pid = fork();
59 if (child_pid == -1) {
62 } else if (child_pid == 0) {
73 sched_setscheduler(child_pid, policy, &param);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/
H A D3-1.c29 int result = -2, child_pid, stat_loc; local
40 child_pid = fork();
41 if (child_pid == -1) {
44 } else if (child_pid == 0) {
55 result = sched_rr_get_interval(child_pid, &interval);
/external/ltp/testcases/kernel/syscalls/clone/
H A Dclone01.c46 int status, child_pid; local
62 child_pid = SAFE_WAIT(cleanup, &status);
64 if (TEST_RETURN == child_pid)
68 TEST_RETURN, child_pid);
H A Dclone07.c44 static int child_pid; variable
64 child_pid = ltp_clone(SIGCHLD, do_child, NULL,
67 if (child_pid < 0)
117 if (child_pid == 0) {
126 if (child_pid != 0)
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dcoverage-fork-direct.cc23 pid_t child_pid = fork(); local
24 if (child_pid == 0) {
H A Dcoverage-fork.cc22 pid_t child_pid = fork(); local
23 if (child_pid == 0) {
/external/ltp/testcases/kernel/syscalls/setpgid/
H A Dsetpgid03.c52 int child_pid; local
69 if ((child_pid = FORK_OR_VFORK()) == -1)
72 if (child_pid == 0) {
82 rval = setpgid(child_pid, getppid());
100 if ((child_pid = FORK_OR_VFORK()) == -1)
103 if (child_pid == 0) {
111 rval = setpgid(child_pid, getppid());
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D11-1.c67 pid_t child_pid; local
88 child_pid = fork();
89 if (child_pid == -1) {
94 if (child_pid == 0)
97 if (waitpid(child_pid, &child_stat, 0) == -1) {
/external/autotest/client/profilers/catprofile/
H A Dcatprofile.py23 self.child_pid = os.fork()
24 if self.child_pid: # parent
44 os.kill(self.child_pid, 15)
/external/autotest/client/profilers/powertop/
H A Dpowertop.py20 self.child_pid = os.fork()
21 if self.child_pid: # parent
36 os.kill(self.child_pid, 15)
/external/ltp/testcases/kernel/syscalls/sched_getparam/
H A Dsched_getparam02.c92 pid_t child_pid; local
102 switch (child_pid = FORK_OR_VFORK()) {
140 if ((waitpid(child_pid, &status, 0)) < 0) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/
H A D1-2.c39 int child_pid, child_pgid; local
41 if ((child_pid = fork()) == 0) {
71 if ((child_pgid = getpgid(child_pid)) == -1) {
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/
H A Dlib.h23 extern int kill_child_and_wait(pid_t child_pid);
24 extern int wait_for_child(pid_t child_pid);
/external/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl22.c42 int child_pid; variable
63 child_pid = FORK_OR_VFORK();
64 switch (child_pid) {
90 tst_record_childstatus(cleanup, child_pid);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
H A D5-1.c79 int fd, child_pid; local
82 child_pid = fork();
83 if (child_pid == -1) {
86 } else if (child_pid == 0) {
/external/ltp/testcases/kernel/syscalls/capset/
H A Dcapset02.c105 static pid_t child_pid = -1; variable
193 if (0 < child_pid) {
194 kill(child_pid, SIGTERM);
237 child_pid = FORK_OR_VFORK();
238 if (child_pid == -1)
240 else if (child_pid == 0) {
250 header.pid = child_pid;

Completed in 2036 milliseconds

12345