ctrl+c and destructors
Adam D. Ruppe
destructionator at gmail.com
Sat Oct 5 19:38:13 PDT 2013
On Sunday, 6 October 2013 at 02:20:29 UTC, Sean Kelly wrote:
> You need to trap SIGINT. But then you're stuck in a signal
> handler and so can't do much to clean up.
yeah, what I decided to do was to just set a global variable when
the signal arrives and then I checked it on each iteration of my
main event loop.
Alas it isn't as generic as I was hoping, but at least it works
for me.
More information about the Digitalmars-d
mailing list