[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: controlled exit
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 29 Sep 2011 14:49:12 -0300
> Signals perhaps? E.g. SIGTERM
>
> For example:
>
> http://lua-users.org/lists/lua-l/2010-07/msg00198.html
See also lua.c which catches SIGINT. The same technique can be used to
catch SIGTERM though you'll probably want to return a special error
object to signal termination.