Module: ngircd.git Branch: master Commit: 83c699d5a559acecc9b62767e4ffcf8fb50dfbb5 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=83c69...
Author: Alexander Barton alex@barton.de Date: Wed Dec 3 16:49:17 2008 +0100
Make testsuite (getpid.sh) work on OpenSolaris (i386/pc/solaris2.11).
---
src/testsuite/getpid.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh index 0d94519..5e16917 100755 --- a/src/testsuite/getpid.sh +++ b/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
ngircd-commits@lists.barton.de