pcp
[Top] [All Lists]

[PATCH] Make ps format detection work on systems where we can't see root

To: pcp@xxxxxxxxxxx
Subject: [PATCH] Make ps format detection work on systems where we can't see root's processes.
From: Mikel Ward <mikel@xxxxxxxxxxxxx>
Date: Mon, 4 Oct 2010 14:47:11 +1100
I was trying to build PCP on a shared web host where I'm not allowed
to see other users' processes.

The configure script was trying to run "ps -ef" or "ps auxww" then
find "init" in the output, but since init runs as root, that test
failed with the message:
    checking for ps style... unknown
    FATAL ERROR: could not determine how to get the "all processes
with arguments"
    format output from your ps(1).

One way to consider is looking for "configure" rather than "init".

Works for me anyway.

Patch attached.

conftest.out (output of ps) is also attached in case we need to find a
different approach.

Thanks

Mikel

 configure.in |   15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

Attachment: pcp-ps-no-init.patch
Description: Text Data

Attachment: conftest.out
Description: Binary data

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