Skip to content

Commit

Permalink
more log for epoll_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Nov 23, 2017
1 parent f081ab7 commit 3bc07d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ int 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 @@ -1445,7 +1445,7 @@ int 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 3bc07d5

Please sign in to comment.