On Saturday, 2 December 2017 at 04:28:57 UTC, Wanderer wrote:
Thanks! This works. But it seems a little bit suspicions that D's type for handler function has `nothrow` `@nogc` and `@system`. I wonder why is that?
Signal handlers are ridiculously limited in what they are allowed to do. Really, you should just set a global variable from the handler and check it on the outside.