summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f89012e)
raw | patch | inline | side by side (parent: f89012e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 19:07:03 +0000 (20:07 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 30 Nov 2015 21:56:04 +0000 (22:56 +0100) |
src/ceph.c | patch | blob | history |
diff --git a/src/ceph.c b/src/ceph.c
index f48e056e68a0c5ca78f3476419732bb057f1ba52..3ce9c88f08e2317138e1ca7271b762b819aa528f 100644 (file)
--- a/src/ceph.c
+++ b/src/ceph.c
{
ERROR("ceph plugin: cconn_connect: connect(%d) failed: error %d",
fd, err);
+ close(fd);
return err;
}
err = -errno;
ERROR("ceph plugin: cconn_connect: fcntl(%d, O_NONBLOCK) error %d",
fd, err);
+ close(fd);
return err;
}
io->asok = fd;