Skip to contentSkip to conversation

cluster/rgmanager/src/clulib lock.c

Cluster-devel [email protected] 1 participant 1 message Jul 26, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2007-07-26 20:48:18

Modified files:
rgmanager/src/clulib: lock.c

Log message:

	Fix #249758

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/lock.c.diff?cvsroot=cluster&r1=1.4&r2=1.5

rgmanager/src/clulib/lock.c +5 -1
@@ -92,7 +92,11 @@
                 return -1;
         }
 
-        return 0;
+	if (lksb->sb_status == 0)
+		return 0;
+
+	errno = lksb->sb_status;
+	return -1;
 }