mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-30 10:17:03 +08:00 
			
		
		
		
	proc/native/linux: call postExit when process is killed by SIGINT (#1622)
If we return ErrProcessExited we should also set exited to true.
This commit is contained in:
		 Alessandro Arzilli
					Alessandro Arzilli
				
			
				
					committed by
					
						 Derek Parker
						Derek Parker
					
				
			
			
				
	
			
			
			 Derek Parker
						Derek Parker
					
				
			
						parent
						
							acc9f24a5b
						
					
				
				
					commit
					7d25f6eb97
				
			| @ -321,6 +321,7 @@ func (dbp *Process) trapWaitInternal(pid int, halt bool) (*Thread, error) { | |||||||
| 		// TODO(dp) alert user about unexpected signals here. | 		// TODO(dp) alert user about unexpected signals here. | ||||||
| 		if err := th.resumeWithSig(int(status.StopSignal())); err != nil { | 		if err := th.resumeWithSig(int(status.StopSignal())); err != nil { | ||||||
| 			if err == sys.ESRCH { | 			if err == sys.ESRCH { | ||||||
|  | 				dbp.postExit() | ||||||
| 				return nil, proc.ErrProcessExited{Pid: dbp.pid} | 				return nil, proc.ErrProcessExited{Pid: dbp.pid} | ||||||
| 			} | 			} | ||||||
| 			return nil, err | 			return nil, err | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user