X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftestsuite%2Fgetpid.sh;h=fd3b3422b1e5c90b85ceb0d672efce2d7719290a;hb=39412d648652b3fcb387cf04bf7fa9004cfcd8ba;hp=0d9451920d938200583d3edd9a20e52e906e8c41;hpb=6eb3f3055d41dab4a395fcea2301034993977722;p=ngircd-alex.git diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh index 0d945192..fd3b3422 100755 --- a/src/testsuite/getpid.sh +++ b/src/testsuite/getpid.sh @@ -7,14 +7,16 @@ # detect flags for "ps" and "head" UNAME=`uname` -if [ $UNAME = "FreeBSD" -o $UNAME = "SunOS" ]; then +if [ $UNAME = "FreeBSD" ]; then PS_FLAGS="-a"; PS_PIDCOL="1"; HEAD_FLAGS="-n 1" elif [ $UNAME = "A/UX" ]; then PS_FLAGS="-ae"; PS_PIDCOL="1"; HEAD_FLAGS="-1" elif [ $UNAME = "GNU" ]; then PS_FLAGS="-ax"; PS_PIDCOL="2"; HEAD_FLAGS="-n 1" +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