schmorp at schmorp.de
Sun Jan 10 15:44:56 CET 2010
On Sat, Jan 09, 2010 at 10:03:03AM -0800, Tim McClarren <tim at idle-games.com> wrote:
>>> of ev_signal was to attempt to deliver asynchronous signals
>> Exactly - so what do you expect?
> I'd expect libev to not catch it, I think... if the behavior of the
> example code is as intended, let's leave it at that. I'm not sure I'm
> an idiot for thinking it might call back into the handler on SEGV. If
Not sure who claimed you are an idiot, but you don't understand SIGSEGV and
how it works.
> there was absolutely no reason for you to ever have a handler for SEGV,
> then I'm guessing that the POSIX spec. would treat it the same as
What you are trying is to magically recover from sigsegv.
>>> I am trying to emit a stack to the log. I've done this before, via the
>>> usually sigaction route.
>> Again, you know you can't continue, so why bother?
> Because I want the call stack?
You can't get it that way - when you handler is called from the event
loop, you will have the call stack from the event loop.
> Anyways, changing back to using sigaction for getting the stack is easy
Yes, and it makes sense for your case.
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
More information about the libev