summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-23 14:43:34 -0700
committerJohn Denker <jsd@av8n.com>2012-07-29 15:32:36 -0700
commit41552786cd6dee05e8cdc20c2daaf5127ec8cb9f (patch)
tree9d8dcccf5214a045dc79678616435e429c8129bb
parent97dd4547d93c1de38a4d69f768cc8c6b99a5d69e (diff)
minor polishing
-rw-r--r--tools/hi-q.c8
-rwxr-xr-xtools/hi-test4.conf5
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