running exit in a subshell is not what we want...

This commit is contained in:
Gunter Labes 2009-01-04 23:36:59 +00:00
parent 435f87d293
commit c55156384d

View file

@ -75,6 +75,6 @@ do
# need to use the recorded path since the build/ symlink might have changed
mv "$SERVERBASE/$BUILDDIR/gmon.out" "$SERVERBASE/$BUILDDIR/gmon.$DATE.$REV.out" &> /dev/null
# check for return code if not zero or 98 (port in use) the server should be restarted
[ "$EXIT_CODE" != "0" ] || (echo "run_server script shutting down."; exit 0)
[ "$EXIT_CODE" != "0" ] || exit 0
[ "$EXIT_CODE" != "98" ] || dietail #Could not bind to port
done