repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 9f3690c39c2bd7cefbed8e3ea1f9519dd25d35c8:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 9f3690c39c2bd7cefbed8e3ea1f9519dd25d35c8
Author: Alexander Barton 
Date:   Sat Jul 30 18:47:58 2011 +0200

    Testsuite: make getpid.sh work even when run as root

    Use ps(1) flag "-a" (as well as "-f"):
    "Select all processes except both session leaders (see getsid(2)) and
    processes not associated with a terminal."

    Thanks to Götz Hoffart for reporting this problem!

diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh
index 5e169175295d53d9d02549937827151a4225983d..
index ..fd3b3422b1e5c90b85ceb0d672efce2d7719290a 100755
--- a/src/testsuite/getpid.sh
+++ b/src/testsuite/getpid.sh
@@ -16,7 +16,7 @@ elif [ $UNAME = "GNU" ]; then
 elif [ $UNAME = "SunOS" ]; then
   PS_FLAGS="-af"; PS_PIDCOL=2; HEAD_FLAGS="-n 1"
 else
-  PS_FLAGS="-f"; PS_PIDCOL="2"; HEAD_FLAGS="-n 1"
+  PS_FLAGS="-af"; PS_PIDCOL="2"; HEAD_FLAGS="-n 1"
   ps $PS_FLAGS > /dev/null 2>&1
   if [ $? -ne 0 ]; then PS_FLAGS="a"; PS_PIDCOL="1"; fi
 fi

-----END OF PAGE-----