summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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