Commit c1c24bfa authored by Mike Hibler's avatar Mike Hibler

Ugh! When reading a line, go ahead and return if the string we have

read matches the prompt, i.e., don't wait to get a newline.  With the
new power controller on the rocketport muxes on a pc1500 tipserver,
even though we send two newlines, we just get back a single prompt
with no newline.  This would cause us to hang forever waiting for the
newline.

Note that it did not do this on the same RPCs with the same muxes on
our ops node (a pc3000).  This could be a bad sign for things to come...
parent daa2966a
......@@ -361,8 +361,9 @@ sub rpc_readline($)
if (sysread($TIP, $line, 1, $cc) == 0) {
return undef;
}
print "got: =$line=\n" if ($debug > 1);
$cc++;
last if ($line =~ /\n/ || $cc > 1023);
last if ($line =~ /\n/ || $line =~ /$RPC27_PROMPT/ || $cc > 1023);
}
return $line;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment