You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defer doesn't run when you use os.Exit() to terminate a process.
Therefore, LState.Close() doesn't run in some cases.
This behavior causes an issue. For instance. A temporary file that is created by io.tmpfile() is not deleted automatically by using glua. Please see the following steps.
Create test.lua
-- test.lualocalt=io.tmpfile()
t:write("This is a tempfile.")
Run the test.lua file by glua.
glua test.lua
Look for the file. At my environment(OSX 10.10.4), the temporary file generated under the /var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T. It is not deleted.
Hello yuin.
defer
doesn't run when you useos.Exit()
to terminate a process.Therefore,
LState.Close()
doesn't run in some cases.This behavior causes an issue. For instance. A temporary file that is created by
io.tmpfile()
is not deleted automatically by usingglua
. Please see the following steps.Create
test.lua
Run the
test.lua
file byglua
.Look for the file. At my environment(OSX 10.10.4), the temporary file generated under the
/var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T
. It is not deleted.The text was updated successfully, but these errors were encountered: