summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-26 00:29:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-26 00:09:21 -0700
commitfb7cfce92572cd827de99fc076b5bb883972a057 (patch)
treed3f723efdf34b201ec0b6f2c2ff5539ba2326742 /xlators
parent7c7219fd881dd6485fbad2e80121a3c2dffd6d9b (diff)
rpcsvc: handle the return value of rpcsvc_create_listeners properly.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c1
-rw-r--r--xlators/protocol/server/src/server.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 28d500bdd75..2665e4ad236 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -291,6 +291,7 @@ init (xlator_t *this)
if (ret < 1) {
gf_log (this->name, GF_LOG_ERROR,
"creation of listener failed");
+ ret = -1;
goto out;
}
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
index 05d69c44d2d..35072ef999e 100644
--- a/xlators/protocol/server/src/server.c
+++ b/xlators/protocol/server/src/server.c
@@ -487,6 +487,7 @@ init (xlator_t *this)
if (ret < 1) {
gf_log (this->name, GF_LOG_DEBUG,
"creation of listener failed");
+ ret = -1;
goto out;
}