On Wed, Feb 24, 2016 at 07:35:13PM +0300, Nick Zavaritsky <[email protected]> 
wrote:
> Hi Mark,

Still Marc, btw.

> Libev provides ev_set_syserr_cb() to customise error handling.
> 
> I wonder, if longjump-ing from a error handler is supported.

libev can't stop you, longjmp is part of the C language.

> Consider a longjump removing all libev frames from the stack and landing at 
> some location that was set up earlier.
> Are we going to get any leaks inside libev? Is that contractual?

You won't get leaks, but you will likely have a non-working loop
afterwards - nothing legal can be done with it anymore.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/libev

Reply via email to