summaryrefslogtreecommitdiff
path: root/tools/testfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 20:42:08 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 20:42:08 +0200
commit4e287fd01d5057d0345183b6845dcc58683a46e4 (patch)
tree43364bd3b794ee558b36c3fe8bd823472be18ab0 /tools/testfile
parent1a121009a7d3927c688fe7dac82cac45b043965d (diff)
fix: close_range path resolution - lookup fd before deleting from map
Move e.files[fd] lookup before the close_range fd cleanup loop in the FdEvent handler so the file path is resolved while the fd still exists in the map. Previously, close_range events always fell through to file.NewFdWithPid() which couldn't resolve the path since the fd was already closed. Also add unit test assertion verifying ep.File resolves to the correct filename for close_range events. Task: 349 Amp-Thread-ID: https://ampcode.com/threads/T-019c8180-1da4-7048-9200-ae93bdd90cab Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'tools/testfile')
0 files changed, 0 insertions, 0 deletions