ctdb-tests: Don't use nc -d or -w options
[vlendec/samba-autobuild/.git] / ctdb / tests / complex / 37_nfs_reset_server.sh
index d6dd0f03b1ff7e14536a29159e302fd63eac512a..07bd034d6c7a75be868a6bc5a129f9eb33864d08 100755 (executable)
@@ -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"