Skip to contentSkip to conversation

cluster/group/lib libgroup.c

Cluster-devel [email protected] 1 participant 1 message Nov 17, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: teigland at sourceware.org 2006-11-17 16:30:45

Modified files:
group/lib : libgroup.c

Log message:
if read() returns a non-EINTR error then abort

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/libgroup.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.24&r2=1.24.2.1

group/lib/libgroup.c +2 -0
@@ -176,6 +176,8 @@
 			return -1;
 		if (rv == -1 && errno == EINTR)
 			continue;
+		if (rv == -1)
+			return -1;
 		off += rv;
 	}
 	return 0;