proc: remove proc.Process.Kill

the proper way to kill the target process is to pass true to Detach.
Everything except old test code did that already.
This commit is contained in:
aarzilli
2018-02-13 15:42:14 +01:00
committed by Derek Parker
parent f32ce1b21d
commit ac1aa98378
9 changed files with 13 additions and 43 deletions

View File

@ -98,8 +98,8 @@ func Attach(pid int) (*Process, error) {
return dbp, nil
}
// Kill kills the target process.
func (dbp *Process) Kill() (err error) {
// kill kills the target process.
func (dbp *Process) kill() (err error) {
if dbp.exited {
return nil
}