Jump to content

Standard Lua function `fd:flush()` doesn't work


Kova_
  • Pending

Heya, lets hop into the code!

print("Opening file: my.log")
file = GLOBAL.io.open("my.log", "w")
print('Running method: file:write("Mew mew")')
file:write("Mew mew")
print('Running method: file:flush() Ptr '..tostring(file.flush))
file:flush()
print("Flushing done")

The server crashes after running file:flush() without printing ANY error. The function is available. The end of log looks like this:

[00:00:01]: Opening file:my.log
[00:00:01]: Running method file:write("Mew mew")
[00:00:01]: Running method file:flush() Ptr function: 0x96f0250
<EOF>

Error happened on Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-77-generic x86_64)


Steps to Reproduce

Mew. See issue description. 

  • Like 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...