[openib-general] [PATCH] rping.c: Fix hang if either the server or the client exits

Pradipta Kumar Banerjee bpradip at in.ibm.com
Thu Jun 22 12:18:46 PDT 2006


early
Reply-To: bpradip at in.ibm.com

This patch fixes the problem as reported by Amith.

Signed-off-by: Pradipta Kumar Banerjee <bpradipt at in.ibm.com>

---

Index: rping.c
=============================================================================
--- rping.c.org	2006-06-23 00:22:17.000000000 +0530
+++ rping.c	2006-06-23 00:39:06.000000000 +0530
@@ -215,6 +215,7 @@ static int rping_cma_event_handler(struc
 	case RDMA_CM_EVENT_DISCONNECTED:
 		fprintf(stderr, "%s DISCONNECT EVENT...\n", cb->server ? "server" : "client");
 		sem_post(&cb->sem);
+		ret = -1;
 		break;
 
 	case RDMA_CM_EVENT_DEVICE_REMOVAL:




More information about the general mailing list