summaryrefslogtreecommitdiffstats
path: root/stap-client
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2008-12-11 12:07:02 -0500
committerDave Brolley <brolley@redhat.com>2008-12-11 12:07:02 -0500
commit0b7f181e1096f8833e24a60a7c0f97ecc063b9f4 (patch)
tree8f82bcfd00c5ec11b7d68529b04a10baa9172439 /stap-client
parent9e2a0b1fb1bbbfaf9feea8cd3dd140b3169e1ac0 (diff)
downloadsystemtap-steved-0b7f181e1096f8833e24a60a7c0f97ecc063b9f4.tar.gz
systemtap-steved-0b7f181e1096f8833e24a60a7c0f97ecc063b9f4.tar.xz
systemtap-steved-0b7f181e1096f8833e24a60a7c0f97ecc063b9f4.zip
Don't use -d on $netcat. Redirect from /dev/null instead.
Diffstat (limited to 'stap-client')
-rwxr-xr-xstap-client2
1 files changed, 1 insertions, 1 deletions
diff --git a/stap-client b/stap-client
index 255551b3..3f530c7e 100755
--- a/stap-client
+++ b/stap-client
@@ -410,7 +410,7 @@ function receive_response {
# Retrieve the file. Wait for up to 5 minutes for a response.
for ((attempt=0; $attempt < 300; ++attempt))
do
- if $netcat -d $server $(($port+1)) > $tar_server 2>/dev/null; then
+ if $netcat $server $(($port+1)) </dev/null > $tar_server 2>/dev/null; then
return;
fi
sleep 1