1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for bug #200, deadloop when read/write 0 and ETIME. 2.0.16.

This commit is contained in:
winlin 2014-11-13 14:30:56 +08:00
parent 77cf885d8c
commit 0bc35e093c
6 changed files with 42 additions and 26 deletions

View file

@ -101,7 +101,7 @@ int sleep2_test()
st_thread_join(trd1, NULL);
srs_trace("sleep test: end");
exit(0);
return 0;
}
@ -431,6 +431,8 @@ int pipe_test()
int main(int argc, char** argv)
{
srs_trace("ETIME=%d", ETIME);
if (st_set_eventsys(ST_EVENTSYS_ALT) < 0) {
srs_trace("st_set_eventsys failed");
return -1;