lua-users home
lua-l archive

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


> On Fri, Mar 19, 2010 at 3:07 PM, Shaun McVey <shaun.mcvey@gmail.com> wrote:
> > The Lua website itself has a live demo (http://www.lua.org/demo.html).
> >  Cases like this appear to be protected against.  Unfortunately, I
> > couldn't find any details on the website about how it's implemented.
> 
> Basically using this hook, if I recall correctly:
> 
> http://www.lua.org/manual/5.1/manual.html#pdf-debug.sethook

Actually, no: it's a simple "ulimit -t 1".
The source code for the demo is available at
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#demo

I think the lua_bot in #lua used to use hooks but
now has moved to ulimit, but I'm not sure.