I have a function that is responsible for killing a child process when the program ends: class MySingleton:
If I place atexit( fn ); on the exit stack, it will get executed when the program exits: returns from main() or via exit().
In C, when the main process ends -- how does it know to call any functions registered with atexit()? I understand how atexit() works, but I don\'t understand the communication between \"Main process
I\'m writing a memory tracking system and the only problem I\'ve actually run into is that when the application exits, any static/global classes that didn\'t allocate in their constructor, but are dea