Skip to contentSkip to conversation

cluster/gfs2/mount util.c

Cluster-devel [email protected] 1 participant 1 message Jun 30, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at 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

gfs2/mount/util.c +3 -3
@@ -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;