fixed task cleanup fd errors

This commit is contained in:
2026-02-14 23:31:45 -05:00
parent 403178c832
commit 6b9bed5047
3 changed files with 6 additions and 4 deletions

View File

@@ -15,8 +15,7 @@ function fs.open(path, mode)
end,
flush=function()
-- close and reopen file to flush buffers
syscall.close(fd)
fd=syscall.open(path,mode)
syscall.fsync(fd)
end
}
if mode=="r" then