repo: ngircd action: commit revision: path_from: revision_from: 90ab7c7c48da57bcd7890b5809e99aa4b685c72a: path_to: revision_to:
commit 90ab7c7c48da57bcd7890b5809e99aa4b685c72a Author: Alexander BartonDate: Fri Sep 20 13:57:01 2002 +0000 - die ermittelte PID des ngIRCd wird besser validiert (leer?). diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh
--- a/src/testsuite/start-server.sh
+++ b/src/testsuite/start-server.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# ngIRCd Test Suite
-# $Id: start-server.sh,v 1.6 2002/09/18 20:58:56 alex Exp $
+# $Id: start-server.sh,v 1.7 2002/09/20 13:57:01 alex Exp $
echo " starting server ..."
@@ -17,6 +17,6 @@ if [ $? -ne 0 ]; then PS_FLAGS=a; PS_PIDCOL=1; fi
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-
diff --git a/src/testsuite/stop-server.sh b/src/testsuite/stop-server.sh
--- a/src/testsuite/stop-server.sh
+++ b/src/testsuite/stop-server.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# ngIRCd Test Suite
-# $Id: stop-server.sh,v 1.5 2002/09/18 20:58:56 alex Exp $
+# $Id: stop-server.sh,v 1.6 2002/09/20 13:57:01 alex Exp $
echo " stopping server ..."
@@ -10,6 +10,6 @@ if [ $? -ne 0 ]; then PS_FLAGS=a; PS_PIDCOL=1; fi
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-
-----END OF PAGE-----