fixed task cleanup fd errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user