diff options
author | Bernard Ogden <bernie.ogden@linaro.org> | 2014-12-11 13:44:08 +0000 |
---|---|---|
committer | Bernard Ogden <bernie.ogden@linaro.org> | 2014-12-15 11:47:22 +0000 |
commit | ac56dbcf89d53d395725cb6025af7aeae1b3881e (patch) | |
tree | eb9b72e0dccbc53fda97603ed9e71294da5637f8 | |
parent | a2179744091bf6c32fdb1c7c666dab81d343e799 (diff) |
Read the handle, not the file
-rwxr-xr-x | scripts/lava.sh | 4 |
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 |