do not quit after got EINTR

This commit is contained in:
wangyu- 2017-11-23 09:42:52 -06:00
parent eaa0e2b54f
commit a8ed6c8b5e

View File

@ -113,8 +113,8 @@ int tunnel_client_event_loop()
if (nfds < 0) { //allow zero if (nfds < 0) { //allow zero
if(errno==EINTR ) if(errno==EINTR )
{ {
mylog(log_info,"epoll interrupted by signal\n"); mylog(log_info,"epoll interrupted by signal continue\n");
myexit(0); //myexit(0);
} }
else else
{ {
@ -417,8 +417,8 @@ int tunnel_server_event_loop()
if (nfds < 0) { //allow zero if (nfds < 0) { //allow zero
if(errno==EINTR ) if(errno==EINTR )
{ {
mylog(log_info,"epoll interrupted by signal\n"); mylog(log_info,"epoll interrupted by signal,continue\n");
myexit(0); //myexit(0);
} }
else else
{ {