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

[Cluster-devel] cluster/rgmanager/src/clulib lock.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL51
Changes by:	lhh sourceware org	2007-07-26 20:48:05

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&only_with_tag=RHEL51&r1=1.3.2.1&r2=1.3.2.1.2.1

--- cluster/rgmanager/src/clulib/lock.c	2007/03/20 17:56:41	1.3.2.1
+++ cluster/rgmanager/src/clulib/lock.c	2007/07/26 20:48:05	1.3.2.1.2.1
@@ -92,7 +92,11 @@
                 return -1;
         }
 
-        return 0;
+	if (lksb->sb_status == 0)
+		return 0;
+
+	errno = lksb->sb_status;
+	return -1;
 }
 
 


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