From b8a36ec9845f59b604d6f1f87ca34636f1eff9ed Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 3 Oct 2023 13:22:37 -0400 Subject: [PATCH] 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 --- bin/dslc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dslc.in b/bin/dslc.in index 7b6811d1..2ade1d8c 100644 --- a/bin/dslc.in +++ b/bin/dslc.in @@ -36,7 +36,7 @@ rater-path() } -CLASSPATH="$CLASSPATH:@DSLC_CLASSPATH@:$dslc_jar" \ - "@JAVA@" @JAVA_OPTS@ $JAVA_OPTS \ +export CLASSPATH="$CLASSPATH:@DSLC_CLASSPATH@:$dslc_jar" +exec "@JAVA@" @JAVA_OPTS@ $JAVA_OPTS \ com.lovullo.dslc.DslCompiler \ "$( rater-path )"