From 41552786cd6dee05e8cdc20c2daaf5127ec8cb9f Mon Sep 17 00:00:00 2001 From: John Denker Date: Mon, 23 Jul 2012 14:43:34 -0700 Subject: minor polishing --- tools/hi-q.c | 8 ++++---- tools/hi-test4.conf | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/hi-q.c b/tools/hi-q.c index 3d654c5..d267d2c 100644 --- a/tools/hi-q.c +++ b/tools/hi-q.c @@ -301,7 +301,7 @@ void block_fd(const LI todo){ int rslt = fstat(fd, &statbuf); if (rslt) { if (0) { - cerr << "definitely needed to block_fd unit " << fd << " : "; + cerr << "**** definitely needed to block_fd unit " << fd << " : "; perror(0); } if (blocker < 0) { @@ -330,7 +330,7 @@ string basename(const string path){ } void attach(const int pipe_end, const int fd, const int kidno){ - cerr << "attaching current pipe_end " << pipe_end + if (0) cerr << "attaching current pipe_end " << pipe_end << " to " << fd << " for " << kidno << endl; if (pipe_end != fd) { @@ -480,7 +480,7 @@ bar } current_read = next_read; - cerr << "top of loop: " + if (verbose) cerr << "top of loop: " << " cr.MSG: " << current_read[MSG] << " cr.ENV: " << current_read[ENV] << " w.MSG: " << current_write[MSG] @@ -512,7 +512,7 @@ bar perror(0); exeunt(ex_syserr); } - if (1) cerr << "new pipe" + if (0) cerr << "new pipe" << " reading: " << datapipe[rEnd] << " writing: " << datapipe[wEnd] << endl; diff --git a/tools/hi-test4.conf b/tools/hi-test4.conf index c0ef589..394279c 100755 --- a/tools/hi-test4.conf +++ b/tools/hi-test4.conf @@ -8,4 +8,9 @@ series /bin/echo "a b c" sa /bin/cat stub hi-test x0 -snooze 1 series /bin/cat +series /bin/cat +series /bin/cat +series /bin/cat +series /bin/cat +series /bin/cat qq hi-test -count -- cgit v1.2.3