more robust Isabelle_System.rm_fifo: avoid external bash invocation, which might not work in JVM shutdown phase (due to Runtime.addShutdownHook);
--- a/src/Pure/System/isabelle_system.scala Mon Sep 20 21:26:58 2010 +0200
+++ b/src/Pure/System/isabelle_system.scala Mon Sep 20 21:54:58 2010 +0200
@@ -292,10 +292,8 @@
else error(result)
}
- def rm_fifo(fifo: String)
- {
- bash_output("rm -f '" + fifo + "'")
- }
+ def rm_fifo(fifo: String): Boolean =
+ (new File(jvm_path(if (Platform.is_windows) fifo + ".lnk" else fifo))).delete
def fifo_input_stream(fifo: String): InputStream =
{