mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-29 01:27:16 +08:00 
			
		
		
		
	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:
		| @ -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 | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 aarzilli
					aarzilli