packer/plugin: Client.Kill should only kill process if it is running
This commit is contained in:
parent
947209a028
commit
c5e83a4b15
@ -136,6 +136,10 @@ func (c *client) Start() (address string, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *client) Kill() {
|
func (c *client) Kill() {
|
||||||
|
if c.cmd.Process == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.cmd.Process.Kill()
|
c.cmd.Process.Kill()
|
||||||
|
|
||||||
// Wait for the client to finish logging so we have a complete log
|
// Wait for the client to finish logging so we have a complete log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user