use task childs instead of pgids to track build process

This commit is contained in:
2025-03-16 21:25:17 +01:00
parent 70a09fbc7d
commit b73f1c8f60
2 changed files with 36 additions and 39 deletions

View File

@@ -225,7 +225,6 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) {
go pollMemoryUsage(pgid, 1*time.Second, done, &peakMem)
err = cmd.Wait()
close(done)
Rusage, ok := cmd.ProcessState.SysUsage().(*syscall.Rusage)