projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a1f23
)
erlang plugin: Don't exit if "erl_accept" indicates an error.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:15:03 +0000
(10:15 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:15:03 +0000
(10:15 +0100)
This happens for example when a client uses an incorrect cookie.
src/erlang.c
patch
|
blob
|
history
diff --git
a/src/erlang.c
b/src/erlang.c
index
65d8f9e
..
93b2441
100644
(file)
--- a/
src/erlang.c
+++ b/
src/erlang.c
@@
-911,9
+911,10
@@
void *listen_thread (void *arg) /* {{{ */
fd = erl_accept (listen, &conn);
if (fd < 0)
{
- ERROR ("erlang plugin: erl_accept failed with status %i.", fd);
- close (listen);
- exit (EXIT_FAILURE);
+ char errbuf[1024];
+ ERROR ("erlang plugin: erl_accept failed: %s",
+ sstrerror (erl_errno, errbuf, sizeof (errbuf)));
+ continue;
}
DEBUG ("erlang plugin: Got connection from %s on fd %i.",
conn.nodename, fd);