reintroduced process interrupt for the sake of synchronous protocol commands like "use_theories" (see also 27930cf6f0f7);
authorwenzelm
Thu, 17 Apr 2014 14:52:23 +0200
changeset 56617 c00646996701
parent 56616 abc2da18d08d
child 56618 874bdedb2313
reintroduced process interrupt for the sake of synchronous protocol commands like "use_theories" (see also 27930cf6f0f7);
src/Pure/System/isabelle_process.scala
--- a/src/Pure/System/isabelle_process.scala	Thu Apr 17 13:21:36 2014 +0200
+++ b/src/Pure/System/isabelle_process.scala	Thu Apr 17 14:52:23 2014 +0200
@@ -147,6 +147,12 @@
 
   def join() { process_manager.join() }
 
+  def interrupt()
+  {
+    try { process.interrupt }
+    catch { case e: IOException => system_output("Failed to interrupt Isabelle: " + e.getMessage) }
+  }
+
   def terminate()
   {
     close(command_input)