winlin

Merge branch 'srs.master'

@@ -309,23 +309,9 @@ ST_HIDDEN void _st_epoll_dispatch(void) @@ -309,23 +309,9 @@ ST_HIDDEN void _st_epoll_dispatch(void)
309 } 309 }
310 310
311 if (_st_epoll_data->pid != getpid()) { 311 if (_st_epoll_data->pid != getpid()) {
312 - /* We probably forked, reinitialize epoll set */  
313 - close(_st_epoll_data->epfd);  
314 - _st_epoll_data->epfd = epoll_create(_st_epoll_data->fd_hint);  
315 - if (_st_epoll_data->epfd < 0) {  
316 - /* There is nothing we can do here, will retry later */  
317 - return;  
318 - }  
319 - fcntl(_st_epoll_data->epfd, F_SETFD, FD_CLOEXEC);  
320 - _st_epoll_data->pid = getpid();  
321 -  
322 - /* Put all descriptors on ioq into new epoll set */  
323 - memset(_st_epoll_data->fd_data, 0, _st_epoll_data->fd_data_size * sizeof(_epoll_fd_data_t));  
324 - _st_epoll_data->evtlist_cnt = 0;  
325 - for (q = _ST_IOQ.next; q != &_ST_IOQ; q = q->next) {  
326 - pq = _ST_POLLQUEUE_PTR(q);  
327 - _st_epoll_pollset_add(pq->pds, pq->npds);  
328 - } 312 + // WINLIN: remove it for bug introduced.
  313 + // @see: https://github.com/winlinvip/simple-rtmp-server/issues/193
  314 + exit(-1);
329 } 315 }
330 316
331 /* Check for I/O operations */ 317 /* Check for I/O operations */
@@ -52,8 +52,8 @@ int sleep_test() @@ -52,8 +52,8 @@ int sleep_test()
52 srs_trace("sleep test: start"); 52 srs_trace("sleep test: start");
53 53
54 srs_trace("1. sleep..."); 54 srs_trace("1. sleep...");
55 -  
56 st_usleep(sleep_ms * 1000); 55 st_usleep(sleep_ms * 1000);
  56 +
57 srs_trace("2. sleep ok"); 57 srs_trace("2. sleep ok");
58 58
59 srs_trace("sleep test: end"); 59 srs_trace("sleep test: end");