summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-27 17:39:27 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-27 17:39:27 -0400
commit08813b345b678c17512f7bd044c631a09933eb2f (patch)
tree93420d32c2f75f4db89bdfdb9d658b2ffb996f4d
parentab55152b471d15a883b820171c995e1a3d677a16 (diff)
chroot-tools/distcc-tool: Avoid a pointless while loop
-rwxr-xr-xsrc/chroot-tools/distcc-tool7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/chroot-tools/distcc-tool b/src/chroot-tools/distcc-tool
index f2e43dd..d181109 100755
--- a/src/chroot-tools/distcc-tool
+++ b/src/chroot-tools/distcc-tool
@@ -199,10 +199,9 @@ parse_DISTCC_HOSTS() {
# specified TCP socket.
server() {
[[ $# -eq 0 ]] || panic
- while read -r host port; do
- socat STDIO TCP:"$host:$port"
- break
- done
+ local host port
+ read -r host port
+ socat STDIO TCP:"$host:$port"
}
# Usage: client HOST PORT