Skip to contentSkip to conversation

cluster/group/daemon main.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:28:20

Modified files:
group/daemon : main.c

Log message:
if read() returns a non-EINTR error then consider the client dead

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.51.2.2&r2=1.51.2.3

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