summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc7eb73)
raw | patch | inline | side by side (parent: fc7eb73)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 19 Jul 2006 16:41:36 +0000 (18:41 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 19 Jul 2006 16:41:36 +0000 (18:41 +0200) |
Otherwise people will get `Too many open files' faily soon.
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 9117bdaea02f641e12a28d3d0be76c3d1393b4f6..f7486f5fc8977e2a4a8db5e23527ac1b072ce5ef 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
if (status != 0) /* `connect(2)' failed */
{
DBG ("connect failed: %s", strerror (errno));
+ close (sd);
return (-1);
}