diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-27 17:39:27 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-27 17:39:27 -0400 |
commit | 08813b345b678c17512f7bd044c631a09933eb2f (patch) | |
tree | 93420d32c2f75f4db89bdfdb9d658b2ffb996f4d /src | |
parent | ab55152b471d15a883b820171c995e1a3d677a16 (diff) |
chroot-tools/distcc-tool: Avoid a pointless while loop
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/distcc-tool | 7 |
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 |