Permalink
Browse files

Fixed #75: Unavaliable command history in new PID.

  • Loading branch information...
1 parent 9b64ef8 commit 5ea789e935ad558d18725ca5e1357a873949b7eb @zhongl zhongl committed Sep 1, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −1 project/Build.scala
  2. +2 −3 src/main/scala/com/github/zhongl/housemd/duck/Telephone.scala
View
@@ -28,7 +28,7 @@ object Build extends sbt.Build {
import Dependencies._
import Unmanaged._
- val VERSION = "0.2.3"
+ val VERSION = "0.2.4"
val javaHome = sys.props("java.home").replace("/jre", "")
lazy val upload = TaskKey[Unit]("upload", "upload assembly jar to github downloads")
@@ -26,7 +26,7 @@ import management.ManagementFactory
import java.io.File
/**
- * Telephone is used by Duck to communicate with House$.
+ * Telephone is used by Duck to communicate with HouseMD.
*
* @author <a href="mailto:zhong.lunfu@gmail.com">zhongl<a>
*/
@@ -35,8 +35,7 @@ class Telephone(inst: Instrumentation, port: Int, classes: Array[Class[Command]]
def run() {
val socket = new Socket("localhost", port)
val reader = new ConsoleReader(socket.getInputStream, socket.getOutputStream)
- val name = ManagementFactory.getRuntimeMXBean.getName
- val history = new FileHistory(new File("/tmp/housemd/" + name + "/.history"))
+ val history = new FileHistory(new File("/tmp/housemd/.history"))
reader.setHistory(history)
try {

0 comments on commit 5ea789e

Please sign in to comment.