summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-11 20:20:04 +0000
committerPaul Phillips <paulp@improving.org>2011-04-11 20:20:04 +0000
commit7d9d9d453a238514bde191f459426207657e1a6c (patch)
treebff816aecb54c153b87d9995a5bea48f7b5c3da7 /src/compiler
parentf229addbcbdda8625b9c9788c83e60ca9cedd448 (diff)
downloadscala-7d9d9d453a238514bde191f459426207657e1a6c.tar.gz
scala-7d9d9d453a238514bde191f459426207657e1a6c.tar.bz2
scala-7d9d9d453a238514bde191f459426207657e1a6c.zip
Pulled daemonized from the process API based on...
Pulled daemonized from the process API based on input from harrah. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala
index 1e2a367176..a0c39f71fb 100644
--- a/src/compiler/scala/tools/nsc/CompileSocket.scala
+++ b/src/compiler/scala/tools/nsc/CompileSocket.scala
@@ -95,7 +95,12 @@ class CompileSocket extends CompileOutputCommon {
private def startNewServer(vmArgs: String) = {
val cmd = serverCommand(vmArgs split " " toSeq)
info("[Executing command: %s]" format cmd.mkString(" "))
- cmd.daemonized().run()
+
+ // Hiding inadequate daemonized implementation from public API for now
+ Process(cmd) match {
+ case x: ProcessBuilder.AbstractBuilder => x.daemonized().run()
+ case x => x.run()
+ }
}
/** The port identification file */