summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-24 20:32:17 +0300
committerPaul Buetow <paul@buetow.org>2026-04-24 20:32:17 +0300
commitfadbf135d0b251387fd785083df79e27d1025cac (patch)
treeb97ae34ed88957a355022c8beedf39d4193a3f47 /integrationtests
parent4595fa01693497682beb1b84641233ca4d214072 (diff)
fix task 38: plug profiling fd leak on setup failure paths
runTraceWithContext and runHeadlessParquet opened cpu/mem/exec-trace profile files via setupProfiling, then relied on the shutdown watcher goroutine (registered later) to close them. If any intervening step (newEventLoop, recorder.Start) returned an error, the watcher was never registered and the profile fds leaked until process exit. Add a defer profiling.stop(logln) immediately after setupProfiling so the fds are released on every return path. profiling.stop is idempotent via sync.Once so the watcher and defer can both run harmlessly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'integrationtests')
0 files changed, 0 insertions, 0 deletions