mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Fix incorrect fd usage
This commit is contained in:
@@ -973,8 +973,10 @@ pub const Resolver = struct {
|
||||
bun.openFileForPath(span);
|
||||
|
||||
if (!store_fd) {
|
||||
out = try bun.getFdPath(query.entry.cache.fd, &buf);
|
||||
std.debug.assert(file.handle > 2);
|
||||
out = try bun.getFdPath(file.handle, &buf);
|
||||
file.close();
|
||||
query.entry.cache.fd = 0;
|
||||
} else {
|
||||
query.entry.cache.fd = file.handle;
|
||||
Fs.FileSystem.setMaxFd(file.handle);
|
||||
|
||||
Reference in New Issue
Block a user