Error handling / ev_set_syserr_cb
Marc Lehmann
schmorp at schmorp.de
Thu Feb 25 03:37:19 CET 2016
On Wed, Feb 24, 2016 at 07:35:13PM +0300, Nick Zavaritsky <mejedi at gmail.com> 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
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list