running exit in a subshell is not what we want...
This commit is contained in:
parent
435f87d293
commit
c55156384d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue