mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
Process.Kill: Use PID in wait
This commit is contained in:
@ -71,7 +71,7 @@ func (dbp *Process) Kill() (err error) {
|
||||
if err != nil {
|
||||
return errors.New("could not deliver signal " + err.Error())
|
||||
}
|
||||
_, _, err = wait(-1, dbp.Pid, 0)
|
||||
_, _, err = wait(dbp.Pid, dbp.Pid, 0)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user