Skip to contentSkip to conversation

cluster ccs/ccs_tool/update.c cman/init.d/cman

Cluster-devel [email protected] 1 participant 1 message Sep 18, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: cfeist at sourceware.org 2006-09-18 15:49:01

Modified files:
ccs/ccs_tool : update.c
cman/init.d : cman

Log message:
- Fix for bz #206325, ccs should not be started with the '-X' option & return the socket file descriptor instead of '0' when returning from ccs_open.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/update.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/init.d/cman.diff?cvsroot=cluster&r1=1.21&r2=1.22

ccs/ccs_tool/update.c +3 -2
@@ -649,14 +649,15 @@
 static int ccs_open(cman_node_t node, uint16_t port, int timeout)
 {
   struct in_addr *addr;
+  int fd;
 
   addr = &(((struct sockaddr_in *)&(node.cn_address.cna_address))->sin_addr);
 
-  if (ipv4_connect(addr, port, timeout) < 0) {
+  if ((fd = ipv4_connect(addr, port, timeout)) < 0) {
     return -1;
   }
 
-  return 0;
+  return fd;
 }
 
 
cman/init.d/cman +1 -1
@@ -8,7 +8,7 @@
 # Provides:
 ### END INIT INFO
 . /etc/init.d/functions
-CCSD_OPTS=-X
+CCSD_OPTS=
 # CMAN_CLUSTER_TIMEOUT -- amount of time to wait for joinging a cluster
 #     before giving up.  If CMAN_CLUSTER_TIMEOUT is positive, then we will
 #     wait CMAN_CLUSTER_TIMEOUT seconds before giving up and failing when