Lines Matching refs:ret_val
149 int ret_val;
163 ret_val = FORK_OR_VFORK();
164 if (ret_val == 0) {
169 exit(ret_val);
176 if (ret_val < 0) {
179 exit(ret_val);
183 fork_kid_pid[kid_count] = ret_val;
189 ret_val = waitpid(-1, &status, WNOHANG | WUNTRACED);
190 if (ret_val != 0) {
192 tst_resm(TFAIL, "Expected 0 got %d", ret_val);
218 while (((ret_val = waitpid(-1, &status, WUNTRACED)) !=
220 if (ret_val == -1)
226 "not stopped", ret_val);
233 "wrong status", ret_val);
241 if (kill(ret_val, SIGCONT) < 0) {
244 ret_val, errno);
248 wait_kid_pid[kid_count++] = ret_val;
286 ret_val = waitpid(-1, &status, WUNTRACED);
287 if (ret_val != -1) {
290 "waitpid(WUNTRACED)", ret_val);