summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 20:47:43 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 20:47:43 +0000
commitd4261648f237d4b50381405b77dd2fb8291ab14a (patch)
tree8980dd44a3efeae3d08c74a1ceee356c81542c44 /vest
parent995460f6b6f29ded1611f1a2aa822c31c93165ca (diff)
line_mediator.pl indicate mode if DEBUG
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@295 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rwxr-xr-xvest/line_mediator.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/vest/line_mediator.pl b/vest/line_mediator.pl
index 4e899c39..2b8fa77c 100755
--- a/vest/line_mediator.pl
+++ b/vest/line_mediator.pl
@@ -43,6 +43,7 @@ if ($serial || $snake) {
my $c1p=open2($R1,$W1,@c1); # Open2 R W backward from Open3.
my $c2p=open2($R2,$W2,@c2);
if ($snake) {
+ info("SNAKE mode\n");
while(<STDIN>) {
info("IN:",$_);
lineto($W1,$_);
@@ -57,6 +58,7 @@ if ($serial || $snake) {
lineto(*STDOUT,$_);
}
} else {
+ info("SERIAL mode\n");
while(<$R1>) {
info("1:",$_);
lineto($W2,$_);
@@ -66,6 +68,7 @@ if ($serial || $snake) {
}
}
} else {
+ info("DIRECT mode\n");
my @rw1=POSIX::pipe();
my @rw2=POSIX::pipe();
my $pid=undef;