From a8ed6c8b5e42d2d43b106908556d8fe56dfa990c Mon Sep 17 00:00:00 2001 From: wangyu- Date: Thu, 23 Nov 2017 09:42:52 -0600 Subject: [PATCH] do not quit after got EINTR --- tunnel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tunnel.cpp b/tunnel.cpp index 3d7db35..41924ba 100644 --- a/tunnel.cpp +++ b/tunnel.cpp @@ -113,8 +113,8 @@ int tunnel_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 { @@ -417,8 +417,8 @@ int tunnel_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 {