Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: lib by davidlee from 
      ([email protected])
   2. Linux-HA CVS: mgmt by alan from  ([email protected])
   3. Linux-HA CVS: linux-ha by davidlee from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Jan 2006 02:18:45 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: lib by davidlee from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : davidlee
Host    : 
Project : linux-ha
Module  : lib

Dir     : linux-ha/lib/clplumbing


Modified Files:
        ipcsocket.c 


Log Message:
Prevent memory word alignment problems on some architectures
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/clplumbing/ipcsocket.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -3 -r1.167 -r1.168
--- ipcsocket.c 10 Jan 2006 16:41:33 -0000      1.167
+++ ipcsocket.c 18 Jan 2006 09:18:44 -0000      1.168
@@ -1,4 +1,4 @@
-/* $Id: ipcsocket.c,v 1.167 2006/01/10 16:41:33 alan Exp $ */
+/* $Id: ipcsocket.c,v 1.168 2006/01/18 09:18:44 davidlee Exp $ */
 /*
  * ipcsocket unix domain socket implementation of IPC abstraction.
  *
@@ -1297,7 +1297,7 @@
 
                GList *                         element;
                struct IPC_MESSAGE *            msg;
-               struct SOCKET_MSG_HEAD*         head;
+               struct SOCKET_MSG_HEAD          head;
                 struct IPC_MESSAGE*            oldmsg = NULL;
                int                             sendrc = 0;
                 struct IPC_MESSAGE*            newmsg;
@@ -1337,9 +1337,9 @@
                        msg = newmsg;
                }
                
-               head = (struct SOCKET_MSG_HEAD*) msg->msg_buf;
-                head->msg_len = msg->msg_len;
-               head->magic = HEADMAGIC;
+                head.msg_len = msg->msg_len;
+               head.magic = HEADMAGIC;
+               memcpy(msg->msg_buf, &head, sizeof(struct SOCKET_MSG_HEAD));
                
                if (ch->bytes_remaining == 0){
                        /*we start to send a new message*/




------------------------------

Message: 2
Date: Wed, 18 Jan 2006 09:17:49 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/daemon


Modified Files:
        mgmtd.c 


Log Message:
Got rid of extra spaces.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/daemon/mgmtd.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- mgmtd.c     30 Dec 2005 08:31:27 -0000      1.12
+++ mgmtd.c     18 Jan 2006 16:17:49 -0000      1.13
@@ -361,7 +361,7 @@
                                "Shutting down.");
                exit(100);
        }       
-                       
+
        /* create source for server socket and add to the mainloop */
        sch = g_io_channel_unix_new(ssock);
        g_io_add_watch(sch, G_IO_IN|G_IO_ERR|G_IO_HUP, on_listen, NULL);




------------------------------

Message: 3
Date: Wed, 18 Jan 2006 10:51:33 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: linux-ha by davidlee from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : davidlee
Host    : 
Module  : linux-ha

Dir     : linux-ha


Modified Files:
        configure.in 


Log Message:
Detect availability of streams (fallback purposes only); also of Solaris 10+ 
socket/stream credentials.
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/configure.in,v
retrieving revision 1.485
retrieving revision 1.486
diff -u -3 -r1.485 -r1.486
--- configure.in        22 Dec 2005 15:03:30 -0000      1.485
+++ configure.in        18 Jan 2006 17:51:32 -0000      1.486
@@ -10,7 +10,7 @@
 AC_INIT(heartbeat.spec.in)
 
 AC_CONFIG_AUX_DIR(.)
-AC_REVISION($Revision: 1.485 $) dnl cvs revision
+AC_REVISION($Revision: 1.486 $) dnl cvs revision
 AC_CANONICAL_HOST
 
 
@@ -866,6 +866,21 @@
 AC_CHECK_HEADERS(sys/prctl.h)
 AC_CHECK_HEADERS(linux/watchdog.h,[],[],[#include <linux/types.h>])
 
+dnl Sockets are our preferred and supported comms mechanism.  But the
+dnl implementation needs to be able to convey credentials: some don't.
+dnl So on a few OSes, credentials-carrying streams might be a better choice.
+dnl
+dnl Solaris releases up to and including "9" fall into this category
+dnl (its sockets don't carry credentials; streams do).
+dnl
+dnl At Solaris 10, "getpeerucred()" is available, for both sockets and
+dnl streams, so it should probably use (preferred) socket mechanism.
+
+AC_CHECK_HEADERS(stropts.h)    dnl streams available (fallback option)
+
+AC_CHECK_HEADERS(ucred.h)      dnl e.g. Solaris 10 decl. of "getpeerucred()"
+AC_CHECK_FUNCS(getpeerucred)
+
 dnl ************************************************************************
 dnl checks for headers needed by clplumbing On BSD
 AC_CHECK_HEADERS(sys/syslimits.h)




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 26, Issue 44
********************************************

Reply via email to