--- a/src/Pure/System/ml_process.scala Tue Mar 08 20:33:34 2016 +0100
+++ b/src/Pure/System/ml_process.scala Tue Mar 08 21:08:50 2016 +0100
@@ -72,11 +72,14 @@
val eval_secure = if (secure) List("Secure.set_secure ()") else Nil
val eval_process =
- channel match {
- case None => List("Isabelle_Process.init_options ()")
- case Some(ch) =>
- List("Isabelle_Process.init_protocol " + ML_Syntax.print_string_raw(ch.server_name))
- }
+ if (load_heaps.isEmpty) Nil
+ else
+ channel match {
+ case None =>
+ List("Isabelle_Process.init_options ()")
+ case Some(ch) =>
+ List("Isabelle_Process.init_protocol " + ML_Syntax.print_string_raw(ch.server_name))
+ }
// bash
val bash_args =