lua-users home
lua-l archive

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


I have built a small binding around the signal() call, mail me if
interested.

-- Fred

> You may also want to look at the way SIGINT is handled in the Lua
> interpreter (in src/lua/lua.c).  The signal handler sets a hook that
> is called the next time a Lua VM instruction is executed. 
>
> On 7/19/05, *Mark McDonald* <mdmcdonald@fastmail.fm
> <mailto:mdmcdonald@fastmail.fm>> wrote:
>
>     In my initial investigation of Lua, I am struck by it's elegance,
>     but I have not seen any capability to trap unix signals ( i.e. sighup,
>     sigint).
>     If I have missed this, please correct me.
>
>     Best regards,  Mark
>
>     "Linux is for people who hate M$ Windows; BSD is for people who love
>     Unix."
>
>