[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lalarm & io:read()?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 25 Mar 2012 21:37:28 -0300
> 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.