commit - cf20b16d2aa3926d598c61e919083264cac1c12c
commit + 9f9f6767160243892938ec3dc836420c7b0b71bc
blob - 3c9f1bccfece848831832d064b750fd001ace8f1
blob + 2cf6280e67ea5ebe1ecd5261df9e6c7e8ccb38c0
--- src/testsuite/start-server.sh
+++ src/testsuite/start-server.sh
#!/bin/sh
# ngIRCd Test Suite
-# $Id: start-server.sh,v 1.5.2.1 2002/09/20 13:46:22 alex Exp $
+# $Id: start-server.sh,v 1.5.2.2 2002/09/20 13:55:51 alex Exp $
echo " starting server ..."
ps $PS_FLAGS > procs.tmp
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$$PS_PIDCOL }"`
-kill -0 $pid > /dev/null 2>&1
+[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1 || exit 1
# -eof-
blob - e9acbb31baa276b320a1e50046892defc4e69a48
blob + ac9540d0f13e459a51489274cf6e5c145949bed2
--- src/testsuite/stop-server.sh
+++ src/testsuite/stop-server.sh
#!/bin/sh
# ngIRCd Test Suite
-# $Id: stop-server.sh,v 1.4.2.1 2002/09/20 13:46:22 alex Exp $
+# $Id: stop-server.sh,v 1.4.2.2 2002/09/20 13:55:51 alex Exp $
echo " stopping server ..."
ps $PS_FLAGS > procs.tmp
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$$PS_PIDCOL }"`
-kill $pid > /dev/null 2>&1
+[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1 || exit 1
# -eof-