From 3c67615857af959b95ab7c133d07a06bb9cebdeb Mon Sep 17 00:00:00 2001 From: xrs Date: Tue, 26 Jun 2018 23:29:17 +0200 Subject: [PATCH] gnunet-helper-nat-server.c: fix 100% cpu load --- src/nat/gnunet-helper-nat-server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nat/gnunet-helper-nat-server.c b/src/nat/gnunet-helper-nat-server.c index 44817ede7..c5c6b563e 100644 --- a/src/nat/gnunet-helper-nat-server.c +++ b/src/nat/gnunet-helper-nat-server.c @@ -683,7 +683,10 @@ main (int argc, if (1 == getppid ()) /* Check the parent process id, if 1 the parent has died, so we should die too */ break; if (FD_ISSET (icmpsock, &rs)) + { process_icmp_response (); + continue; + } if (0 == (++alt % 2)) send_icmp_echo (&external); else -- 2.25.1