提交 f9b6c439 编写于 作者: A aarzilli 提交者: Derek Parker

proc/native: report trapWaitInternal errors in nativeProcess.stop

The process could quit while we are inside stop, we should report the
error otherwise the following code will try to send on the closed
ptrace channel.
Fixes a sporadic error in TestIssue1101.
上级 55543e25
......@@ -475,7 +475,10 @@ func (dbp *nativeProcess) stop(trapthread *nativeThread) (err error) {
// check if any other thread simultaneously received a SIGTRAP
for {
th, _ := dbp.trapWaitInternal(-1, trapWaitNohang)
th, err := dbp.trapWaitInternal(-1, trapWaitNohang)
if err != nil {
return dbp.exitGuard(err)
}
if th == nil {
break
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册