diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-13 23:08:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-13 23:08:28 +0900 |
| commit | 60c287375048b21eab2bd82f1e7d43e36dcfb3a2 (patch) | |
| tree | 73579c22037ac160ebb56e254659809b3c88931e /helper | |
| parent | d1d20c06fb0c3ed5aaff15f284921a5e61c291e1 (diff) | |
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>
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/proc/files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/proc/files.go b/helper/proc/files.go index 3749727b..24cc7225 100644 --- a/helper/proc/files.go +++ b/helper/proc/files.go @@ -89,7 +89,7 @@ func Fulfill(ctx context.Context, cmd *exec.Cmd, files []File, extraFiles *Extra if err != nil { break } - case <-c.Done(): + case <-ctx.Done(): err = syscall.ECANCELED break } |
