Reputation: 2052
Do cleanup routines registered with atexit() run when the program is terminated by sending a break ( Ctrl+C )?
atexit()
Upvotes: 2
Views: 177
Reputation: 11929
No. You need to install handler for SIGINT signal.
Upvotes: 1