projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
eba226f
)
Merge branch 'collectd-3.9'
author
Florian Forster
<octo@huhu.verplant.org>
Sun, 9 Jul 2006 08:16:49 +0000
(10:16 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Sun, 9 Jul 2006 08:16:49 +0000
(10:16 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
54f9bfa
..
22e911a
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-215,7
+215,11
@@
int network_create_socket (const char *node, const char *service)
DBG ("node = %s, service = %s", node, service);
if (operating_mode == MODE_LOCAL || operating_mode == MODE_LOG)
+ {
+ syslog (LOG_WARNING, "network_create_socket: There is no point opening a socket when you are in mode `%s'.",
+ operating_mode == MODE_LOCAL ? "Local" : "Log");
return (-1);
+ }
socklist_tail = socklist_head;
while ((socklist_tail != NULL) && (socklist_tail->next != NULL))