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 0b82b10 commit b2f6760
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tun_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ int tun_dev_client_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 Expand Up @@ -714,8 +714,8 @@ int tun_dev_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 b2f6760

Please sign in to comment.