Skip to content

Commit

Permalink
do not quit after got EINTR
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Nov 23, 2017
1 parent 91097ea commit f081ab7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,9 @@ int client_event_loop()
if (nfds < 0) { //allow zero
if(errno==EINTR )
{
mylog(log_info,"epoll interrupted by signal\n");
mylog(log_info,"epoll interrupted by signal,continue\n");
//close(fifo_fd);
myexit(0);
//myexit(0);
}
else
{
Expand Down Expand Up @@ -1440,8 +1440,8 @@ int server_event_loop()
if (nfds < 0) { //allow zero
if(errno==EINTR )
{
mylog(log_info,"epoll interrupted by signal\n");
myexit(0);
mylog(log_info,"epoll interrupted by signal,continue\n");
//myexit(0);
}
else
{
Expand Down

0 comments on commit f081ab7

Please sign in to comment.