commit 3c67615857af959b95ab7c133d07a06bb9cebdeb
parent cf274353b531842dd55cd4ff75046dd060ff3011
Author: xrs <xrs@mail36.net>
Date: Tue, 26 Jun 2018 23:29:17 +0200
gnunet-helper-nat-server.c: fix 100% cpu load
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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