75
pid = waitpid(-1, &status, 0);
76
MSG(("waitpid()=%d, status=%d", pid, status));
79
if (WIFEXITED(status)) {
82
if (WEXITSTATUS(status) != 0)
84
else if (WIFSIGNALED(status) != 0)
75
while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
76
MSG(("waitpid()=%d, status=%d", pid, status));
79
if (WIFEXITED(status)) {
82
if (WEXITSTATUS(status) != 0)
84
else if (WIFSIGNALED(status) != 0)
93
YApplication::handleSignal(sig);