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

[Cluster-devel] cluster/group/daemon main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-11-17 16:26:34

Modified files:
	group/daemon   : main.c 

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

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&r1=1.53&r2=1.54

--- cluster/group/daemon/main.c	2006/11/15 14:35:05	1.53
+++ cluster/group/daemon/main.c	2006/11/17 16:26:34	1.54
@@ -73,6 +73,8 @@
 			return -1;
 		if (rv == -1 && errno == EINTR)
 			continue;
+		if (rv == -1)
+			return -1;
 		off += rv;
 	}
 	return 0;


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