in reply to Re: Re: Closures, object destruction and memory leaks
in thread Closures, object destruction and memory leaks
Before you do the local, capture the existing handlers in lexical variables and pass them in to $req's handleInterrupt method.
That way if a particular request type wants to, it can rethrow an exception properly up the chain, rather than just ignoring the poor programmer who is trying to put a signal handler around your code because they really don't want to exit on that signal.
Doing this makes the signal handler system act a little bit more like a proper exception handling system. Not that much more like, mind you, but somewhat more like it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Closures, object destruction and memory leaks
by mpeppler (Vicar) on Nov 11, 2003 at 15:42 UTC | |
by tilly (Archbishop) on Nov 11, 2003 at 16:11 UTC | |
by mpeppler (Vicar) on Nov 11, 2003 at 16:18 UTC |