From 5f0a16cd1f503119525eccfc643180c338de5185 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Thu, 23 Nov 2017 09:58:53 -0600 Subject: [PATCH] more log info for epoll_wait --- tunnel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tunnel.cpp b/tunnel.cpp index 41924ba..961429f 100644 --- a/tunnel.cpp +++ b/tunnel.cpp @@ -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); } }