From mboxrd@z Thu Jan 1 00:00:00 1970 From: teigland@sourceware.org Date: 30 Jun 2006 15:11:40 -0000 Subject: [Cluster-devel] cluster/gfs2/mount util.c Message-ID: <20060630151140.7462.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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;