[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/rgmanager/src daemons/main.c utils/clu ...



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh sourceware org	2008-01-21 22:37:17

Modified files:
	rgmanager/src/daemons: main.c 
	rgmanager/src/utils: clulog.c 

Log message:
	Fix ccs connect error handling

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/main.c.diff?cvsroot=cluster&r1=1.47&r2=1.48
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clulog.c.diff?cvsroot=cluster&r1=1.5&r2=1.6

--- cluster/rgmanager/src/daemons/main.c	2008/01/10 09:28:41	1.47
+++ cluster/rgmanager/src/daemons/main.c	2008/01/21 22:37:17	1.48
@@ -845,10 +845,10 @@
 	char *v;
 	char internal = 0;
 
-	if (ccsfd == -1) {
+	if (ccsfd < 0) {
 		internal = 1;
 		ccsfd = ccs_connect();
-		if (ccsfd == -1)
+		if (ccsfd < 0)
 			return -1;
 	}
 
--- cluster/rgmanager/src/utils/clulog.c	2007/11/30 20:06:55	1.5
+++ cluster/rgmanager/src/utils/clulog.c	2008/01/21 22:37:17	1.6
@@ -53,10 +53,10 @@
 	char *v;
 	char internal = 0;
 
-	if (ccsfd == -1) {
+	if (ccsfd < 0) {
 		internal = 1;
 		ccsfd = ccs_connect();
-		if (ccsfd == -1)
+		if (ccsfd < 0)
 			return -1;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]