mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-19 06:19:34 +08:00
ignore EINTR
This commit is contained in:
parent
ee9dab37fa
commit
08f2b5d405
13
main.cpp
13
main.cpp
@ -705,8 +705,17 @@ int event_loop()
|
|||||||
int nfds = epoll_wait(epollfd, events, max_events, 180 * 1000); //3mins
|
int nfds = epoll_wait(epollfd, events, max_events, 180 * 1000); //3mins
|
||||||
if (nfds < 0)
|
if (nfds < 0)
|
||||||
{
|
{
|
||||||
mylog(log_fatal,"epoll_wait return %d\n", nfds);
|
if(errno==EINTR )
|
||||||
myexit(-1);
|
{
|
||||||
|
mylog(log_info,"epoll interrupted by signal,continue\n");
|
||||||
|
//myexit(0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mylog(log_fatal,"epoll_wait return %d,%s\n", nfds,strerror(errno));
|
||||||
|
myexit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
int n;
|
int n;
|
||||||
int clear_triggered=0;
|
int clear_triggered=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user