summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-08-25 11:34:59 +0200
committerLudovic Courtès <ludo@gnu.org>2026-08-27 14:41:25 +0200
commit8a1a029f8fb6360d4b2c955e55f46b99f02a5c0f (patch)
tree8bc26efd5950237126cd67897169284baac09f29 /gnu
parent1a3d801d98f56cf3d915b21d17aa5f29b542ebb9 (diff)
cache: Avoid potential file descriptor leak.
There fixes two cases where ‘maybe-remove-expired-cache-entries’ could leak ‘expiry-port’ (in which case the underlying file descriptor would be closed later, when ‘expiry-port’ gets GC’d.) * guix/cache.scm (maybe-remove-expired-cache-entries): When ‘obsolete?’ returns false, explicitly close ‘expiry-port’. When it returns true, catch errors around ‘seek’ block and close ‘expiry-port’ upon exception. Remove ENOENT handling and comment that predates commit d921c742b774a9f0a016f3db6442d5c58a330c92. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #10795
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions