summaryrefslogtreecommitdiff
path: root/tools/hi-q.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-18 04:58:36 -0700
committerJohn Denker <jsd@av8n.com>2012-07-18 04:58:36 -0700
commitd200953a8fc800da589796c9bc87634f402b5e3c (patch)
tree5db3bd69b59cd88664d3f817a289a3575bf3c546 /tools/hi-q.c
parent655e53de1650618c1238fda3e52944f4ac0fa5d5 (diff)
minor upgrade to log/progress msg
Diffstat (limited to 'tools/hi-q.c')
-rw-r--r--tools/hi-q.c11
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 */