more log info for epoll_wait

This commit is contained in:
wangyu- 2017-11-23 09:58:53 -06:00
parent a8ed6c8b5e
commit 5f0a16cd1f

View File

@ -118,7 +118,7 @@ int tunnel_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);
}
}
@ -422,7 +422,7 @@ int tunnel_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);
}
}