do not quit after got EINTR

This commit is contained in:
wangyu- 2017-11-23 09:35:33 -06:00
parent 91097eab5d
commit f081ab751d

View File

@ -1196,9 +1196,9 @@ int 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");
//close(fifo_fd); //close(fifo_fd);
myexit(0); //myexit(0);
} }
else else
{ {
@ -1440,8 +1440,8 @@ int 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
{ {