Browse Source

tools/etcd-agent: recycle etcd zombie when termination

Yicheng Qin 10 years ago
parent
commit
4314b19a2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/functional-tester/etcd-agent/agent.go

+ 1 - 1
tools/functional-tester/etcd-agent/agent.go

@@ -73,7 +73,7 @@ func (a *Agent) restart() error {
 // terminate stops the exiting etcd process the agent started
 // terminate stops the exiting etcd process the agent started
 // and removes the data dir.
 // and removes the data dir.
 func (a *Agent) terminate() error {
 func (a *Agent) terminate() error {
-	a.cmd.Process.Kill()
+	a.stop()
 	args := a.cmd.Args
 	args := a.cmd.Args
 
 
 	datadir := path.Join(a.cmd.Path, "*.etcd")
 	datadir := path.Join(a.cmd.Path, "*.etcd")