aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Ogden <bernie.ogden@linaro.org>2014-12-11 13:44:08 +0000
committerBernard Ogden <bernie.ogden@linaro.org>2014-12-15 11:47:22 +0000
commitac56dbcf89d53d395725cb6025af7aeae1b3881e (patch)
treeeb9b72e0dccbc53fda97603ed9e71294da5637f8
parenta2179744091bf6c32fdb1c7c666dab81d343e799 (diff)
Read the handle, not the file
-rwxr-xr-xscripts/lava.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lava.sh b/scripts/lava.sh
index 3b49e0e..91841f7 100755
--- a/scripts/lava.sh
+++ b/scripts/lava.sh
@@ -221,7 +221,7 @@ done
read -t "${boot_timeout}" user_ip <&4
if test $? -ne 0; then
- echo "read -t ${boot_timeout} user_ip < ${listener_file}"
+ echo "read -t ${boot_timeout} user_ip <&4 failed" 1>&2
exit 1
fi
if test x"${user_ip}" = x; then
@@ -232,6 +232,6 @@ fi
echo "LAVA target ready at ${user_ip}"
#Continue to report whatever comes across the listener
while true; do
- read line < "${listener_file}"
+ read line <&4
echo "${line}"
done