diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-07-21 14:56:26 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-07-21 14:56:26 +0000 |
commit | 30161140e965f52765c21d64d2d672d9c20c22bf (patch) | |
tree | 7c4168dd97ad4102aa44c5bb6186e9616c118ea2 /src/compiler/scala/tools/nsc | |
parent | 4146327bbd6b8e5468c05a570a9190c99c4285e3 (diff) | |
download | scala-30161140e965f52765c21d64d2d672d9c20c22bf.tar.gz scala-30161140e965f52765c21d64d2d672d9c20c22bf.tar.bz2 scala-30161140e965f52765c21d64d2d672d9c20c22bf.zip |
do not waitFor a newly spawned process -- that ...
do not waitFor a newly spawned process -- that waits until the process ends
Diffstat (limited to 'src/compiler/scala/tools/nsc')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileSocket.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala index f9feaea80e..18b64fdf2b 100644 --- a/src/compiler/scala/tools/nsc/CompileSocket.scala +++ b/src/compiler/scala/tools/nsc/CompileSocket.scala @@ -105,11 +105,11 @@ object CompileSocket { val cmd = serverCommand(vmArgs) info("[Executed command: " + cmd + "]") try { - val proc = Runtime.getRuntime().exec(cmd) - val exitVal = proc.waitFor() - info("[Exit value: " + exitVal + "]") + Runtime.getRuntime().exec(cmd) +// val exitVal = proc.waitFor() +// info("[Exit value: " + exitVal + "]") } catch { - case ex: Throwable => + case ex: IOException => fatal("cannot start server." + "\ntried command: " + cmd) } @@ -127,7 +127,7 @@ object CompileSocket { for (val i <- 1 until hits.length) hits(i).delete() Integer.parseInt(hits(0).getName) } catch { - case ex: Throwable => + case ex: NumberFormatException => fatal(ex.toString() + "\nbad file in temp directory: " + hits(0).getAbsolutePath() + |