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

research st, add comments for bug #193.

This commit is contained in:
winlin 2014-11-11 11:24:19 +08:00
parent cd09fcaf55
commit f4dfee0e9f
2 changed files with 3 additions and 1 deletions

View file

@ -308,6 +308,8 @@ ST_HIDDEN void _st_epoll_dispatch(void)
timeout = (int) (min_timeout / 1000);
}
// TODO: WINLIN: remove it for bug introduced.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/193
if (_st_epoll_data->pid != getpid()) {
/* We probably forked, reinitialize epoll set */
close(_st_epoll_data->epfd);

View file

@ -52,8 +52,8 @@ int sleep_test()
srs_trace("sleep test: start");
srs_trace("1. sleep...");
st_usleep(sleep_ms * 1000);
srs_trace("2. sleep ok");
srs_trace("sleep test: end");