summaryrefslogtreecommitdiff
path: root/src/ceph_osd.cc
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2012-01-17 10:51:00 -0800
committerSage Weil <sage@newdream.net>2012-01-17 10:51:00 -0800
commit79d19320565b9fbdeafada8fd46b1e9011803b17 (patch)
treeb80f4373c8dc81ab816d861168abd817774ecf29 /src/ceph_osd.cc
parent7804046d1abde7a75e295efeaeb44363f695deb9 (diff)
downloadceph-79d19320565b9fbdeafada8fd46b1e9011803b17.tar.gz
osd: fix bind error checks
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/ceph_osd.cc')
-rw-r--r--src/ceph_osd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc
index 99fba05cb6b..526b34af748 100644
--- a/src/ceph_osd.cc
+++ b/src/ceph_osd.cc
@@ -278,7 +278,7 @@ int main(int argc, const char **argv)
r = client_messenger->bind(g_conf->public_addr, getpid());
if (r < 0)
exit(1);
- cluster_messenger->bind(g_conf->cluster_addr, getpid());
+ r = cluster_messenger->bind(g_conf->cluster_addr, getpid());
if (r < 0)
exit(1);
@@ -286,7 +286,7 @@ int main(int argc, const char **argv)
entity_addr_t hb_addr = g_conf->cluster_addr;
if (!hb_addr.is_blank_ip())
hb_addr.set_port(0);
- messenger_hbout->bind(hb_addr, getpid());
+ r = messenger_hbout->bind(hb_addr, getpid());
if (r < 0)
exit(1);