X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftestsuite%2Fgetpid.sh;h=f200afb9ad69494a45f657f2fa4d4e160a088076;hp=96ab474685111b1322e9c806282f3debfb01ba21;hb=7e14bd3b58522ac34f0af29182248df1577d99c9;hpb=46b0eef721b9b3eec37d29aff65b6a7fc488a887 diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh index 96ab4746..f200afb9 100755 --- a/src/testsuite/getpid.sh +++ b/src/testsuite/getpid.sh @@ -1,10 +1,11 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: getpid.sh,v 1.5 2006/08/05 00:15:28 alex Exp $ # did we get a name? [ $# -ne 1 ] && exit 1 +[ -x /bin/pidof ] && exec /bin/pidof -s $@ + # detect flags for "ps" and "head" UNAME=`uname` if [ $UNAME = "FreeBSD" ]; then