Skip to content

Conversation

@bwoebi
Copy link
Member

@bwoebi bwoebi commented Jun 21, 2015

This uses a fake exception so that normal exception handling mechanisms can be used.
The DeathException ce is never exposed to userland; it is a purely internal exception userland never has knowledge of.

One advantage is that e.g. memory leaks etc. in long-running applications can be easily found by interrupting them and die()'ing there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a corresponding free somewhere (unless I missed it?)

Alternatively could just alloc this as a global.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do_facepalm(); right.

@bwoebi bwoebi force-pushed the death_exception branch 3 times, most recently from de9917c to d533bb0 Compare June 21, 2015 23:29
This uses a fake exception so that normal exception handling mechanisms can be used.
The DeathException ce is never exposed to userland; it is a purely internal exception userland never has knowledge of.
@bwoebi bwoebi force-pushed the death_exception branch from d533bb0 to 30558e8 Compare June 21, 2015 23:37
Yes, session tests fail, but I think that was not really correct before... we die(), but do not really die?!
@krakjoe
Copy link
Member

krakjoe commented Jan 6, 2017

@bwoebi can we know the status of this work please ?

@krakjoe
Copy link
Member

krakjoe commented Feb 22, 2017

Having waited more than a month for feedback, and having received nothing, I'm closing this PR as it would appear abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants