lua-users home
lua-l archive

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


> Haven't seen lalarm implementation, but signal handler usually merely
> enables the Lua hook to fire on the next instruction (since you can't
> do much in a signal handler), the actual signal handler is run only
> after execution returns to the Lua VM (which wouldn't happen until
> io:read() finishes).

That's exactly what is happening. If you print something in l_signal in
lalarm.c then you'll see that printed before io:read() finishes.