When I Ctrl C my program on linux I often get output that looks similar to a stack-dump (a crash).
Can I catch the Ctrl-C signal and exit gracefully?
Basic heap usage statistics in GCC on 64-bit platform
1:Segmentation Fault in prime number sieve
You must trap signals withWould it be simply better to use the system's functions rather than use the language?
Kernel.trap: . How do you go about setting up monitoring for a non-web frontend process?
trap('INT') did # exit gracefully end