fix sync barrier

This commit is contained in:
Quentin 2020-02-05 21:12:44 +01:00
parent 069db154e6
commit 48d7a8f89e

View file

@ -2,11 +2,7 @@
sleep 1
echo "sync_barrier_start"
nc -u 127.13.3.7 5000 --sh-exec 'while true; do sleep 1; echo a; done' &
CAPTURE=$!
nc -ul 127.0.0.1 5000 --exec /bin/true
nc -v --udp --source 127.0.0.1 --source-port 5000 127.13.3.7 5000 --sh-exec '(while true; do sleep 1; echo a; done) & B=$!; read r; kill $B'
echo "sync_barrier_release"
sleep 1
kill $CAPTURE
sleep 10
echo "sync_barrier_done"