提交 7d25f6eb 编写于 作者: A Alessandro Arzilli 提交者: Derek Parker

proc/native/linux: call postExit when process is killed by SIGINT (#1622)

If we return ErrProcessExited we should also set exited to true.
上级 acc9f24a
......@@ -321,6 +321,7 @@ func (dbp *Process) trapWaitInternal(pid int, halt bool) (*Thread, error) {
// TODO(dp) alert user about unexpected signals here.
if err := th.resumeWithSig(int(status.StopSignal())); err != nil {
if err == sys.ESRCH {
dbp.postExit()
return nil, proc.ErrProcessExited{Pid: dbp.pid}
}
return nil, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册