Lines Matching refs:status

103   int status;	/* Exit status of PID or 128 + fatal signal number */
197 /* Return the status of PID as looked up in the PID_LIST array. A
210 return (pid_list[i].status);
214 process_exit_status (status)
215 WAIT status;
217 if (WIFSIGNALED (status))
218 return (128 + WTERMSIG (status));
220 return (WEXITSTATUS (status));
223 /* Return the status of PID as looked up in the PID_LIST array. A
236 return (get_termsig ((WAIT)pid_list[i].status));
241 depending on its flags and exit status. */
243 get_termsig (status)
244 WAIT status;
246 if (WIFSTOPPED (status) == 0 && WIFSIGNALED (status))
247 return (WTERMSIG (status));
252 /* Give PID the status value STATUS in the PID_LIST array. */
254 set_pid_status (pid, status)
256 WAIT status;
261 coproc_pidchk (pid, status);
268 pid_list[slot].status = process_exit_status (status);
270 if (WIFSIGNALED (status))
332 pid_list[slot].status = -1;
432 /* Collect the status of all zombie children so that their system
439 WAIT status;
442 while ((pid = waitpid (-1, (int *)&status, WNOHANG)) > 0)
443 set_pid_status (pid, status);
571 /* Wait for a single pid (PID) and return its exit status. Called by
578 WAIT status;
597 while ((got_pid = WAITPID (pid, &status, 0)) != pid)
610 set_pid_status (got_pid, status);
615 set_pid_status (got_pid, status);
622 return (got_pid > 0 ? process_exit_status (status) : -1);
631 WAIT status;
641 while ((got_pid = WAITPID (-1, &status, 0)) != -1)
642 set_pid_status (got_pid, status);
731 WAIT status;
751 while ((got_pid = WAITPID (-1, &status, 0)) != pid) /* XXX was pid now -1 */
757 status.w_termsig = status.w_retcode = 0;
759 status = 0;
766 set_pid_status (got_pid, status);
770 set_pid_status (got_pid, status);
786 if (WIFSIGNALED (status) && (WTERMSIG (status) == SIGINT))
800 /* ``a full 8 bits of status is returned'' */
801 return_val = process_exit_status (status);
802 last_command_exit_signal = get_termsig (status);
805 if ((WIFSTOPPED (status) == 0) && WIFSIGNALED (status) &&
806 (WTERMSIG (status) != SIGINT))
808 if ((WIFSTOPPED (status) == 0) && WIFSIGNALED (status) &&
809 (WTERMSIG (status) != SIGINT) && (WTERMSIG (status) != SIGPIPE))
812 fprintf (stderr, "%s", j_strsignal (WTERMSIG (status)));
813 if (WIFCORED (status))
820 if (WIFSIGNALED (status) || WIFSTOPPED (status))