summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileSocket.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-30 15:52:46 +0000
committerPaul Phillips <paulp@improving.org>2011-01-30 15:52:46 +0000
commitc5f20ad02b6d1806e8d0dbca6639630726afc5ee (patch)
treee49a80fd4ce7b9b84365ca24d3c73e2ca07dfd73 /src/compiler/scala/tools/nsc/CompileSocket.scala
parent45c751c04ed116e7ec6e3777c27624c5ffa3d682 (diff)
downloadscala-c5f20ad02b6d1806e8d0dbca6639630726afc5ee.tar.gz
scala-c5f20ad02b6d1806e8d0dbca6639630726afc5ee.tar.bz2
scala-c5f20ad02b6d1806e8d0dbca6639630726afc5ee.zip
Closes #4204, an issue with fsc.
I mistakenly used a synchronous call when creating the server. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileSocket.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala
index cba1ce132e..19ba822231 100644
--- a/src/compiler/scala/tools/nsc/CompileSocket.scala
+++ b/src/compiler/scala/tools/nsc/CompileSocket.scala
@@ -82,11 +82,11 @@ class CompileSocket {
private def serverCommand(vmArgs: Seq[String]): Seq[String] =
Seq(vmCommand) ++ vmArgs ++ Seq(serverClass) filterNot (_ == "")
- /** Start a new server; returns true iff it succeeds */
+ /** Start a new server. */
private def startNewServer(vmArgs: String) = {
val cmd = serverCommand(vmArgs split " " toSeq)
info("[Executing command: %s]" format cmd)
- (cmd.! == 0) || fatal("Cannot start compilation daemon.\ntried command: %s" format cmd)
+ cmd.run()
}
/** The port identification file */