packer/plugin: Client.Kill should only kill process if it is running

pull/15/head
Mitchell Hashimoto 13 years ago
parent 947209a028
commit c5e83a4b15

@ -136,6 +136,10 @@ func (c *client) Start() (address string, err error) {
}
func (c *client) Kill() {
if c.cmd.Process == nil {
return
}
c.cmd.Process.Kill()
// Wait for the client to finish logging so we have a complete log

Loading…
Cancel
Save