ctrl+c and destructors

Sean Kelly sean at invisibleduck.org
Wed Oct 2 10:36:08 PDT 2013


On Oct 1, 2013, at 10:12 PM, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> 
> Now, having *druntime* throw an exception upon ctrl-C is something
> totally different, and yes it will require some kind of scaffolding/hack
> to make it work, 'cos the exception must propagate outside of signal
> handler context.

I believe the way this currently works is by dynamically modifying code at the point the SEGV occurred, which first patches up the code that was modified and then throws.  But if the SEGV was inside a system call, you could be in serious trouble, since that code isn't exception safe.


More information about the Digitalmars-d mailing list