Skip to contentSkip to conversation

cluster/ccs/daemon cnx_mgr.c

Cluster-devel [email protected] 1 participant 1 message Jun 15, 2006

lore
Share & tools
lore
#0 lore raw

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

ccs/daemon/cnx_mgr.c +2 -1
@@ -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;