Fix: Improve handling of soft signals on darwin

Fixes a bug on OSX where, if the debugged process spawned a child, when
that process received a SIGCHLD it would cause Delve to hang.

Fixes #197
This commit is contained in:
Derek Parker
2015-08-11 19:12:37 -05:00
parent 3f4476da02
commit a336c92a8b
5 changed files with 82 additions and 33 deletions

View File

@ -694,3 +694,13 @@ func TestBreakpointOnFunctionEntry(t *testing.T) {
}
})
}
func TestProcessReceivesSIGCHLD(t *testing.T) {
withTestProcess("sigchldprog", t, func(p *Process, fixture protest.Fixture) {
err := p.Continue()
_, ok := err.(ProcessExitedError)
if !ok {
t.Fatalf("Continue() returned unexpected error type %s", err)
}
})
}