summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-23 14:43:34 -0700
committerJohn Denker <jsd@av8n.com>2012-07-23 14:43:34 -0700
commitc5f90db88ef7c9b9055d81266a124699ac47971d (patch)
treec4eb70544739f096cfde59d3205ddd203663b755 /tools
parent263260498e0d8b12d5d539f9e8244ac4e5b1ba9c (diff)
minor polishing
Diffstat (limited to 'tools')
-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