lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Does the garbage collector run when the process terminates?

The garbage collector runs when the Lua state is closed. The standard Lua
interpreter closes its Lua state before exiting. The garbage collector does
not run if the process terminates abnormaly or via an explicit call to os.exit.