Lines Matching refs:status

44 decode_wait_status(int status)
52 if (WIFCONTINUED(status)) {
56 if (WIFEXITED(status)) {
61 snprintf(b, sizeof(b), "EXIT(%d)", WEXITSTATUS(status));
64 if (WIFSIGNALED(status)) {
69 snprintf(b, sizeof(b), "SIG(%s)", strsignal(WTERMSIG(status)));
71 if (WCOREDUMP(status))
74 if (WIFSTOPPED(status)) {
79 snprintf(b, sizeof(b), "SIG(%s)", strsignal(WSTOPSIG(status)));
182 wait_info(int pid, int status, struct ptrace_lwpinfo *lwpinfo)
188 decode_wait_status(status));
219 int status;
227 if (waitpid(pid, &status, 0) == -1) {
231 if (WIFEXITED(status) || WIFSIGNALED(status)) {
232 wait_info(pid, status, NULL);
235 assert(WIFSTOPPED(status));
236 assert(WSTOPSIG(status) == SIGTRAP);
243 wait_info(pid, status, &lwpinfo);
252 if (waitpid(pid, &status, 0) == -1) {
256 if (WIFEXITED(status) || WIFSIGNALED(status)) {
257 wait_info(pid, status, NULL);
260 assert(WIFSTOPPED(status));
261 assert(WSTOPSIG(status) == SIGTRAP);
268 wait_info(pid, status, &lwpinfo);
285 int status;
293 if (waitpid(pid, &status, 0) == -1) {
297 if (WIFEXITED(status) || WIFSIGNALED(status)) {
298 wait_info(pid, status, NULL);
301 assert(WIFSTOPPED(status));
302 assert(WSTOPSIG(status) == SIGTRAP);
309 wait_info(pid, status, &lwpinfo);
338 int c, status, use_vfork;
381 if (waitpid(pid, &status, 0) == -1) {
385 assert(WIFSTOPPED(status));
386 assert(WSTOPSIG(status) == SIGSTOP);
394 wait_info(pid, status, &lwpinfo);
408 if (waitpid(pid1, &status, 0) == -1) {
412 printf(TRACE "nested loop, pid %d status %s\n",
413 pid1, decode_wait_status(status));
414 assert(WIFSTOPPED(status));
415 assert(WSTOPSIG(status) == SIGSTOP);
422 wait_info(pid1, status, &lwpinfo);