Is it possible to capture a Ctrl+C signal (SIGINT) and run a cleanup function, in a “defer” fashion?
I want to capture the Ctrl+C (SIGINT) signal sent from the console and print out some partial run totals. 10 Answers 10
I want to capture the Ctrl+C (SIGINT) signal sent from the console and print out some partial run totals. 10 Answers 10