helper/proc: cancel ec on parent ctx
This allows errors written during a timeout to be received and handled. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
d1d20c06fb
commit
60c2873750
@ -89,7 +89,7 @@ func Fulfill(ctx context.Context, cmd *exec.Cmd, files []File, extraFiles *Extra
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case <-c.Done():
|
case <-ctx.Done():
|
||||||
err = syscall.ECANCELED
|
err = syscall.ECANCELED
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user