summaryrefslogtreecommitdiff
path: root/ctdb/tests/complex/36_smb_reset_server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/complex/36_smb_reset_server.sh')
-rwxr-xr-xctdb/tests/complex/36_smb_reset_server.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/complex/36_smb_reset_server.sh b/ctdb/tests/complex/36_smb_reset_server.sh
index 5723ac7e025..beff1a22014 100755
--- a/ctdb/tests/complex/36_smb_reset_server.sh
+++ b/ctdb/tests/complex/36_smb_reset_server.sh
@@ -52,7 +52,7 @@ sleep_for 5
echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with nc..."
-nc -d -w $(($monitor_interval * 4)) $test_ip $test_port &
+sleep $((monitor_interval * 4)) | nc $test_ip $test_port &
nc_pid=$!
ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1"