[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: Re: [Linux-ha-dev] Hb-2.08/stable: crm_master/uname problem on
From: "Andrew Beekhof" <beekhof () gmail ! com>
Date: 2007-05-16 13:54:32
Message-ID: 26ef5e70705160654l3edbadd3u176632ee1077906b () mail ! gmail ! com
[Download RAW message or body]
push to dev for the next release
On 5/16/07, Otte, Joerg <joerg.otte@nsn.com> wrote:
>
>
>
>
>
> I tried "crm_master -G" under Solaris and received
> > crm_master[13193]: 2007/05/16_14:08:36 ERROR: uname(3) call failed: Error
> 0
>
> I traced the system calls and found uname returning 1 :
> ....
> zone_lookup("") = 0
> zone_getattr(0, ZONE_ATTR_PRIVSET, 0xFEA00288, 12) = 12
> getpeerucred(4, 0x08066C58) = 0
> > uname(0x08047674) = 1
> getpid() = 12539
> [12538]
> ..
> ..
>
> which is Ok under Solaris.
> The return values for uname are diffrent between Linux and Solaris.
>
> Man page Solaris says:
> RETURN VALUES
> Upon successful completion, a non-negative value is
> returned. Otherwise, -1 is returned and errno is set to
> indicate the error.
>
> Man page Linux says:
> RETURN VALUE
> On success, zero is returned.
> On error, -1 is returned, and errno is set appropriately.
>
>
> I think in crm_attribute.c is the call which doesn't work
> under Solaris:
>
> ./crm/admin/crm_attribute.c: if(uname(&name) !=
> 0) {
> ./crm/admin/crm_attribute.c:
> cl_perror("uname(3) call failed");
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic