Lines Matching refs:wait_val
121 int wait_val;
122 wait(&wait_val);
123 if (WIFEXITED(wait_val)) {
125 << WEXITSTATUS(wait_val) << endl;
131 if (WIFSIGNALED(wait_val)) {
132 if (WTERMSIG(wait_val))
134 << WTERMSIG(wait_val) << endl;
135 if (WCOREDUMP(wait_val))
142 if (WIFSTOPPED(wait_val) && WSTOPSIG(wait_val) != SIGTRAP) {
143 cerr << "Program stopped by signal " << WSTOPSIG(wait_val) << endl;