On Tuesday, 10 July 2018 at 20:57:02 UTC, Steven Schveighoffer
wrote:
On 7/10/18 4:02 PM, Per Nordlöw wrote:
On Tuesday, 10 July 2018 at 19:27:07 UTC, Steven Schveighoffer
wrote:
On 7/10/18 3:01 PM, Per Nordlöw wrote:
[...]
Yes, call this function on startup:
import etc.linux : registerMemoryErrorHandler;
void main()
{
registerMemoryErrorHandler();
...
}
No, it's not documented anywhere. Probably should be...
Okay thanks. When would you not want that behavior to be
default?
It was controversial at the time, and considered a hack. It's
also only supported on Linux. So I don't know the reason why
it's not always done for Linux, I really think it should be.
-Steve
https://github.com/dlang/druntime/pull/2249