diff --git a/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala b/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala index 0d0251a22..dd5d567ba 100644 --- a/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala +++ b/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala @@ -469,6 +469,7 @@ class KernelLauncher( else Map.empty[String, String] + assert(proc == null) proc = os.proc(command).spawn( cwd = dir, env = extraEnv ++ specExtraEnv, diff --git a/modules/scala/launcher/src/main/scala/almond/launcher/Launcher.scala b/modules/scala/launcher/src/main/scala/almond/launcher/Launcher.scala index b1f1118b0..4274c4612 100644 --- a/modules/scala/launcher/src/main/scala/almond/launcher/Launcher.scala +++ b/modules/scala/launcher/src/main/scala/almond/launcher/Launcher.scala @@ -204,6 +204,7 @@ object Launcher extends CaseApp[LauncherOptions] { setDaemon(true) override def run(): Unit = if (p.isAlive()) { + System.err.println("Shutting down underlying kernel") p.close() val timeout = 500.millis if (!p.waitFor(timeout.toMillis)) { @@ -212,6 +213,7 @@ object Launcher extends CaseApp[LauncherOptions] { ) p.destroyForcibly() } + System.err.println("Shut down underlying kernel") } } Runtime.getRuntime.addShutdownHook(hook)