detach process more reliably -- NB: viewer might be synchronous or asynchronous depending on settings;
authorwenzelm
Sun, 23 Jun 2013 21:15:42 +0200
changeset 52429 921f22c8890e
parent 52428 fce1c133e1f8
child 52430 289e36c2870a
detach process more reliably -- NB: viewer might be synchronous or asynchronous depending on settings;
src/Pure/System/doc.scala
--- a/src/Pure/System/doc.scala	Sun Jun 23 20:26:31 2013 +0200
+++ b/src/Pure/System/doc.scala	Sun Jun 23 21:15:42 2013 +0200
@@ -60,7 +60,8 @@
       } yield (dir, doc)
     docs match {
       case (dir, doc) :: _ =>
-        Isabelle_System.bash_env(dir.file, null, "\"$ISABELLE_TOOL\" display " + quote(doc) + " &")
+        Isabelle_System.bash_env(dir.file, null,
+          "\"$ISABELLE_TOOL\" display " + quote(doc) + " >/dev/null 2>/dev/null &")
       case Nil => error("Missing Isabelle documentation: " + quote(name))
     }
   }