[Cluster-devel] cluster/ccs/daemon cnx_mgr.c

lhh at sourceware.org lhh at sourceware.org
Thu Jun 15 21:39:31 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	STABLE
Changes by:	lhh at sourceware.org	2006-06-15 21:39:31

Modified files:
	ccs/daemon     : cnx_mgr.c 

Log message:
	Fix inifinite loop causing hangs in other daemons (#194361)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/daemon/cnx_mgr.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.24.2.6.4.3.2.3&r2=1.24.2.6.4.3.2.4

--- cluster/ccs/daemon/cnx_mgr.c	2006/01/12 18:10:58	1.24.2.6.4.3.2.3
+++ cluster/ccs/daemon/cnx_mgr.c	2006/06/15 21:39:31	1.24.2.6.4.3.2.4
@@ -1233,8 +1233,9 @@
  fail:
   error = write(afd, ch, sizeof(comm_header_t)+ch->comm_payload_size);
   if(error < 0){
+    if (errno == EINTR)
+      goto fail;
     log_sys_err("Unable to write package back to sender");
-    goto fail;
   } else if(error < (sizeof(comm_header_t)+ch->comm_payload_size)){
     log_err("Unable to write complete package.\n");
     error = -EBADE;




More information about the Cluster-devel mailing list