#!/bin/sh . ./test-lib.sh eval $(unused_listen) rtmpfiles unicorn_config curl_out curl_err pid r_err r_out nr_thread=10 nr_client=10 cat > $unicorn_config <> $curl_out 2>> $curl_err & done sleep 2 kill -QUIT $(cat $pid) wait dbgcat r_err ! test -s $curl_err test x"$(wc -l < $curl_out)" = x$nr_client nr=$(sort < $curl_out | uniq | wc -l) test "$nr" -eq 1 test x$(sort < $curl_out | uniq) = xHello ! grep Error $r_err