From: xrs Date: Tue, 26 Jun 2018 21:29:17 +0000 (+0200) Subject: gnunet-helper-nat-server.c: fix 100% cpu load X-Git-Tag: v0.11.0~332^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c67615857af959b95ab7c133d07a06bb9cebdeb;p=oweals%2Fgnunet.git gnunet-helper-nat-server.c: fix 100% cpu load --- 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