Commit Diff


commit - 56cf95278e24fb2df8742bcfddd2d6ea0a61accb
commit + 83c699d5a559acecc9b62767e4ffcf8fb50dfbb5
blob - 0d9451920d938200583d3edd9a20e52e906e8c41
blob + 5e169175295d53d9d02549937827151a4225983d
--- src/testsuite/getpid.sh
+++ src/testsuite/getpid.sh
@@ -7,12 +7,14 @@
 
 # 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 $PS_FLAGS > /dev/null 2>&1