proc: bugfix: propagate signals we don't handle to inferior

Fixes #419 (partial)
This commit is contained in:
aarzilli
2016-02-15 16:14:07 +01:00
committed by Derek Parker
parent 63a660820e
commit 037926015a
3 changed files with 41 additions and 3 deletions

View File

@ -33,9 +33,13 @@ func (t *Thread) stopped() bool {
return state == StatusTraceStop
}
func (t *Thread) resume() (err error) {
func (t *Thread) resume() error {
return t.resumeWithSig(0)
}
func (t *Thread) resumeWithSig(sig int) (err error) {
t.running = true
t.dbp.execPtraceFunc(func() { err = PtraceCont(t.ID, 0) })
t.dbp.execPtraceFunc(func() { err = PtraceCont(t.ID, sig) })
return
}