close window and start process asynchronously;
authorwenzelm
Thu, 05 Sep 2013 22:08:25 +0200
changeset 53424 091b05002c54
parent 53423 b5a279c7d7f3
child 53425 f5b1f555b73b
close window and start process asynchronously;
src/Pure/System/cygwin_init.scala
--- a/src/Pure/System/cygwin_init.scala	Thu Sep 05 21:37:32 2013 +0200
+++ b/src/Pure/System/cygwin_init.scala	Thu Sep 05 22:08:25 2013 +0200
@@ -52,8 +52,11 @@
     {
       _return_code match {
         case None =>
-        case Some(0) => start
-        case Some(rc) => sys.exit(rc)
+        case Some(0) =>
+          visible = false
+          default_thread_pool.submit(() => start)
+        case Some(rc) =>
+          sys.exit(rc)
       }
     }