src/Pure/System/isabelle_process.scala
changeset 73803 2141d6c83511
parent 73802 8d9ac6cfc270
child 73897 0ddb5de0506e
--- a/src/Pure/System/isabelle_process.scala	Fri Jun 04 22:46:11 2021 +0200
+++ b/src/Pure/System/isabelle_process.scala	Fri Jun 04 22:50:32 2021 +0200
@@ -37,9 +37,9 @@
           modes = modes, cwd = cwd, env = env)
       }
       catch { case exn @ ERROR(_) => channel.shutdown(); throw exn }
-    process.stdin.close()
 
     val isabelle_process = new Isabelle_Process(session, process)
+    process.stdin.close()
     session.start(receiver => new Prover(receiver, session.cache, channel, process))
 
     isabelle_process