projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
write_graphite plugin: Don't call close() on invalid file descriptors.
[collectd.git]
/
src
/
write_graphite.c
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
11e09a2
..
aa87896
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-220,7
+220,6
@@
static int wg_callback_init (struct wg_callback *cb)
"write_graphite plugin: Connecting to %s:%s failed. "
"The last error was: %s", node, service,
sstrerror (errno, errbuf, sizeof (errbuf)));
- close (cb->sock_fd);
return (-1);
}
else