ctrl+c and destructors

Jacob Carlborg doob at me.com
Tue Oct 1 11:16:27 PDT 2013


On 2013-10-01 13:19, PauloPinto wrote:

> I just remember that you also have the added problem that signal
> handlers are very limited in what you are allowed to do, with the set of
> restrictions and guarantees not being portable across all POSIX systems.
>
> Specially the tricks of notifying the application a signal has happened,
> after signal returns and the whole story of redoing interrupted system
> calls.

druntime already handles SIGSEGV signals, at least for Linux:

https://github.com/D-Programming-Language/druntime/blob/master/src/etc/linux/memoryerror.d

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list