summaryrefslogtreecommitdiff
path: root/tools/hi-q.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-15 11:17:53 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-15 11:17:53 (GMT)
commit536e04ff8c9452ac799c7c53c0414bd3b75f3b56 (patch)
treea28e001bbf7c0f0bb541d80fc8b470ff761cdce7 /tools/hi-q.c
parent8fecb23e962d53c02c7770334190c4d73cd3d5bc (diff)
fancier log/progress message
Diffstat (limited to 'tools/hi-q.c')
-rw-r--r--tools/hi-q.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/tools/hi-q.c b/tools/hi-q.c
index 0dc66d7..40d7100 100644
--- a/tools/hi-q.c
+++ b/tools/hi-q.c
@@ -203,7 +203,7 @@ int main(int argc, char** argv, char const * const * env) {
if (job.size()) filter.push_back(job);
}
unsigned int nkids = filter.size();
- if (verbose) for (unsigned int ii = 0; ii < nkids; ii++) {
+ if (0 && verbose) for (unsigned int ii = 0; ii < nkids; ii++) {
cerr << "hi-q filter[" << ii << "] :; ";
for (VS::const_iterator token = filter[ii].begin();
token != filter[ii].end(); token++){
@@ -380,11 +380,23 @@ int main(int argc, char** argv, char const * const * env) {
close(sync[wEnd]); // more housecleaning
close(sync[rEnd]);
- close(0); // the reading end of stdin was
- // delegated to the first child
+ close(0); // Housecleaning: the reading end of stdin was
+ // delegated to the first child,
+ // so we don't need it.
+
+ if (verbose) for (unsigned int ii = 0; ii < nkids; ii++) {
+ cerr << "hi-q filter[" << ii << "] "
+ << kidpid[ii]
+ << " :; ";
+ for (VS::const_iterator token = filter[ii].begin();
+ token != filter[ii].end(); token++){
+ cerr << *token << " ";
+ }
+ cerr << endl;
+ }
for (unsigned int ii=0; ii<nkids-1; ii++){ /* loop over N-1 kids */
- /* not last kid */
+ /* _not_ including last kid */
#ifdef testing
blurb(ii, kidpid);
#else