MCPcopy Create free account
hub / github.com/attermann/microReticulum / cleanup_handler

Function cleanup_handler

examples/nomadnet/src/main.cpp:441–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439*/
440
441void cleanup_handler(int signum) {
442 if (signum == SIGINT) {
443 printf("\nCtrl+C detected. Performing cleanup...\n");
444 printf("Cleanup complete. Exiting.\n");
445 _exit(0);
446 }
447}
448
449static void usage(const char* argv0) {
450 printf("\nUsage:\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected