dscl: Replace process with `java`

This uses `exec` so that the process is replaced, simplifying process
management (we don't have to worry that the script will die but leave the
child hanging).  I'm not sure why I didn't do this originally.

DEV-10806
main
Mike Gerwitz 2023-10-03 13:22:37 -04:00
parent 3d8c4d1ed0
commit b8a36ec984
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ rater-path()
} }
CLASSPATH="$CLASSPATH:@DSLC_CLASSPATH@:$dslc_jar" \ export CLASSPATH="$CLASSPATH:@DSLC_CLASSPATH@:$dslc_jar"
"@JAVA@" @JAVA_OPTS@ $JAVA_OPTS \ exec "@JAVA@" @JAVA_OPTS@ $JAVA_OPTS \
com.lovullo.dslc.DslCompiler \ com.lovullo.dslc.DslCompiler \
"$( rater-path )" "$( rater-path )"