Re: Small question about os.exit and __gc
[
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: 2014年3月14日 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