stop polling after build

This commit is contained in:
2025-03-16 18:18:30 +01:00
parent 185837bd3c
commit cc754cf4c7

View File

@@ -226,6 +226,8 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) {
err = cmd.Wait() err = cmd.Wait()
close(done)
Rusage, ok := cmd.ProcessState.SysUsage().(*syscall.Rusage) Rusage, ok := cmd.ProcessState.SysUsage().(*syscall.Rusage)
if !ok { if !ok {
log.Panicf("rusage is not of type *syscall.Rusage, are we running on unix-like?") log.Panicf("rusage is not of type *syscall.Rusage, are we running on unix-like?")