fixed task cleanup fd errors

This commit is contained in:
Astronand committed 2026-02-14 23:31:45 -05:00
1 parent 403178c832
commit 6b9bed5047
3 files changed
+6 -4

No files matched your search

+1 -2
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