mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-19 06:19:34 +08:00
do not quit after got EINTR
This commit is contained in:
parent
eaa0e2b54f
commit
a8ed6c8b5e
@ -113,8 +113,8 @@ int tunnel_client_event_loop()
|
|||||||
if (nfds < 0) { //allow zero
|
if (nfds < 0) { //allow zero
|
||||||
if(errno==EINTR )
|
if(errno==EINTR )
|
||||||
{
|
{
|
||||||
mylog(log_info,"epoll interrupted by signal\n");
|
mylog(log_info,"epoll interrupted by signal continue\n");
|
||||||
myexit(0);
|
//myexit(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -417,8 +417,8 @@ int tunnel_server_event_loop()
|
|||||||
if (nfds < 0) { //allow zero
|
if (nfds < 0) { //allow zero
|
||||||
if(errno==EINTR )
|
if(errno==EINTR )
|
||||||
{
|
{
|
||||||
mylog(log_info,"epoll interrupted by signal\n");
|
mylog(log_info,"epoll interrupted by signal,continue\n");
|
||||||
myexit(0);
|
//myexit(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user