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

[Cluster-devel] cluster/gfs2/mount util.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-06-30 15:11:39

Modified files:
	gfs2/mount     : util.c 

Log message:
	gfs_controld_connect error values are < 0, not 0

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/util.c.diff?cvsroot=cluster&r1=1.10&r2=1.11

--- cluster/gfs2/mount/util.c	2006/05/25 14:56:18	1.10
+++ cluster/gfs2/mount/util.c	2006/06/30 15:11:39	1.11
@@ -320,12 +320,12 @@
 	do {
 		sleep(1);
 		fd = gfs_controld_connect();
-		if (!fd)
+		if (fd < 0)
 			warn("waiting for gfs_controld to start");
-	} while (!fd && ++i < 10);
+	} while (fd < 0 && ++i < 10);
 
 	/* FIXME: should we start the daemon here? */
-	if (!fd) {
+	if (fd < 0) {
 		warn("gfs_controld not running");
 		rv = -1;
 		goto out;


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