projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf27435
)
gnunet-helper-nat-server.c: fix 100% cpu load
author
xrs
<xrs@mail36.net>
Tue, 26 Jun 2018 21:29:17 +0000
(23:29 +0200)
committer
xrs
<xrs@mail36.net>
Tue, 26 Jun 2018 21:29:17 +0000
(23:29 +0200)
src/nat/gnunet-helper-nat-server.c
patch
|
blob
|
history
diff --git
a/src/nat/gnunet-helper-nat-server.c
b/src/nat/gnunet-helper-nat-server.c
index 44817ede79c73ac1afa70cc9b0eccf54db984234..c5c6b563ee89c0ebd7dea8646e2669cd6dd40a27 100644
(file)
--- 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