pcp
[Top] [All Lists]

Re: [pcp] pmie quirk-of-the-day

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: [pcp] pmie quirk-of-the-day
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Tue, 03 Feb 2009 16:28:17 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1233565556.8198.24.camel@bozo>
References: <1233203077.4580.30.camel@xxxxxxxxxxxxxxxxxx> <1233299842.9934.40.camel@xxxxxxxxxxxxxxxxxxxxxxx> <1233311014.4566.11.camel@xxxxxxxxxxxxxxxxxx> <1233565556.8198.24.camel@bozo>
On Mon, 2009-02-02 at 20:05 +1100, Ken McDonell wrote:
> For this one, we already have configure support to set
> #define HAVE_GETOPT_NEEDS_POSIXLY_CORRECT 1
> in platform_defs.h, but then we don't seem to use it any place in the
> code (!!).

Oh, it is used in src/pmcd/src/pmcd.c after all, on a closer
look (at least, it is in my tree).  Used in pmstore too.

> I suggest if this is set in the build, then pmcd should force the
> setting of POSIXLY_CORRECT in its own env before launching any pmdas.

dbpmda should do this too, woulda saved me from that red herring
- I'll make it so.

> ps. Changing the semantics of getopt() to pander to laziness is a piece
> of gnu pixie brain fart that should have killed at birth!

Tell us what you really think. :)

OK, found it - the pmie log rotation changes were the cause
(shouldn't allow that in secret-agent mode anyway) - we need
a test which just installs the summary PMDA with the default
config, that would've caught this.

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>