Skip to content

Commit

Permalink
more log info for epoll_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Nov 23, 2017
1 parent b2f6760 commit b59ac5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tun_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ int tun_dev_client_event_loop()
}
else
{
mylog(log_fatal,"epoll_wait return %d\n", nfds);
mylog(log_fatal,"epoll_wait return %d,%s\n", nfds,strerror(errno));
myexit(-1);
}
}
Expand Down Expand Up @@ -719,7 +719,7 @@ int tun_dev_server_event_loop()
}
else
{
mylog(log_fatal,"epoll_wait return %d\n", nfds);
mylog(log_fatal,"epoll_wait return %d,%s\n", nfds,strerror(errno));
myexit(-1);
}
}
Expand Down

0 comments on commit b59ac5d

Please sign in to comment.