diff options
author | John Denker <jsd@av8n.com> | 2012-07-18 04:58:36 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-29 15:32:33 -0700 |
commit | b02174df1578e5d869001446815f461fb48589aa (patch) | |
tree | 5b5eedde01fff2dfabb6f979ea8dd1c0dcb1d7be | |
parent | da0e79048c01344bc430833ef989469f52dd3f3d (diff) |
minor upgrade to log/progress msg
-rw-r--r-- | tools/hi-q.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/hi-q.c b/tools/hi-q.c index 237dbd5..81e717a 100644 --- a/tools/hi-q.c +++ b/tools/hi-q.c @@ -514,11 +514,16 @@ int main(int argc, char** argv) { waitpid(special_pid, &kidstatus, WUNTRACED); if (WIFEXITED(kidstatus)) { int sts = WEXITSTATUS(kidstatus); - cerr << "hi-q ends with status: " << sts << endl; + cerr << "hi-q says: qq program " << kidpid[nkids-1] + << " i.e. '" << filter[nkids-1][0] << "'" + << " returned status " << sts + << endl; return sts; } else if (WIFSIGNALED(kidstatus)) { - cerr << "hi-q: special kid was killed by signal " - << WTERMSIG(kidstatus) << endl; + cerr << "hi-q says: qq program " << kidpid[nkids-1] + << " i.e. '" << filter[nkids-1][0] << "'" + << " was killed by signal " << WTERMSIG(kidstatus) + << endl; return ex_syserr; } else { /* paused, not dead */ |