Closed leegao closed 13 years ago
the atexit registry only fires on main returning 0, which should never happen under normal circumstances. Termination usually follows ctrl+c or a sigterm/sigabort, so we need to catch these and terminate.
I'll be working on this right now
Patch: main.h
main.c atexit(&cleanup); signal(SIGABRT, &exit); signal(SIGTERM, &exit); signal(SIGINT, &exit);
the atexit registry only fires on main returning 0, which should never happen under normal circumstances. Termination usually follows ctrl+c or a sigterm/sigabort, so we need to catch these and terminate.