Handle channel closure during a receive callback when the ringbuffer wraps.
[utcp] / bidirtest
1 #!/bin/sh
2 [ -f bidirtest-data ] || head -c 10000 /dev/urandom >bidirtest-data
3 rm -f bidirtest-copy-client bidirtest-copy-server
4 ./test 9999 <bidirtest-data >bidirtest-copy-server 2>bidirtest-server.log &
5 ./test localhost 9999 <bidirtest-data >bidirtest-copy-client 2>bidirtest-client.log
6 wait
7 cmp bidirtest-data bidirtest-copy-server
8 cmp bidirtest-data bidirtest-copy-client