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