On Monday, 30 September 2013 at 22:55:22 UTC, H. S. Teoh wrote:
On Mon, Sep 30, 2013 at 08:44:36PM +0200, deadalnix wrote:
On Monday, 30 September 2013 at 02:13:47 UTC, H. S. Teoh wrote:
>Well, ctrl-C can be handled, so the way I'd do it is to set >up a >signal handler for SIGINT and have it write something to a >self-pipe
>read by the event handler, then the event handler can throw an
>Exception (which should cause dtors to run as the stack >unwinds).
>

No you can't.

But you somehow can, if you want to use some black magic :
http://www.deadalnix.me/2012/03/24/get-an-exception-from-a-segfault-on-linux-x86-and-x86_64-using-some-black-magic/

We were talking about SIGINT, not SIGSEGV.


That isn't relevant here.

Reply via email to