src/Pure/System/isabelle_system.scala
changeset 73367 77ef8bef0593
parent 73340 0ffcad1f6130
child 73416 08aa4c1ed579
--- a/src/Pure/System/isabelle_system.scala	Thu Mar 04 19:55:52 2021 +0100
+++ b/src/Pure/System/isabelle_system.scala	Thu Mar 04 21:04:27 2021 +0100
@@ -421,7 +421,7 @@
     proc.command(command_line:_*)  // fragile on Windows
     if (cwd != null) proc.directory(cwd)
     if (env != null) {
-      proc.environment.clear
+      proc.environment.clear()
       for ((x, y) <- env) proc.environment.put(x, y)
     }
     proc.redirectErrorStream(redirect)
@@ -430,15 +430,15 @@
 
   def process_output(proc: Process): (String, Int) =
   {
-    proc.getOutputStream.close
+    proc.getOutputStream.close()
 
     val output = File.read_stream(proc.getInputStream)
     val rc =
       try { proc.waitFor }
       finally {
-        proc.getInputStream.close
-        proc.getErrorStream.close
-        proc.destroy
+        proc.getInputStream.close()
+        proc.getErrorStream.close()
+        proc.destroy()
         Exn.Interrupt.dispose()
       }
     (output, rc)