Skip to content

Commit

Permalink
Fix the pid checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc committed Aug 15, 2017
1 parent 5d43816 commit 703d992
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/minikube/drivers/hyperkit/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func (d *Driver) GetState() (state.State, error) {
if err != nil {
return state.Error, err
}

// Sending a signal of 0 can be used to check the existence of a process.
if err := p.Signal(syscall.Signal(0)); err != nil {
return state.Stopped, nil
}
if p == nil {
return state.Stopped, nil
}
Expand Down

0 comments on commit 703d992

Please sign in to comment.