lua-users home
lua-l archive

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


> On Behalf Of Roberto Ierusalimschy
> Sent: maandag 8 oktober 2012 19:37
> 
> > >> >From Lua you cannot see more than one Lua state. The entire world
> > >> >is
> > >> one Lua state. So, that state is the one that os.exit closes.
> There
> > >> is no other.
> > >>
> > >> -- Roberto
> > >>
> > >
> > > That seems to conflict with the statement that it calls exit and
> > > terminates the host program. How do other states survive that?
> >
> > Clearly, they don't. They get abruptly terminated, with no final gc
> sweep run.
> 
> Exactly. This is a problem of the host program. For Lua, other Lua
> states in the host are like other Tcl states in the host.
> 
> -- Roberto

Will the host program be able to catch the call to the underlying c function
exit?