[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Small question about os.exit and __gc
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 14 Mar 2014 10:23:06 -0300
> I also find it pretty odd that os.exit() doesn't close the state by default.
You can always do
do
local exit=os.exit
os.exit=function(code) exit(code,true) end
end