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

Function cleanup_handler

examples/link_native/src/main.cpp:302–309  ·  view source on GitHub ↗

Signal handler function

Source from the content-addressed store, hash-verified

300
301// Signal handler function
302void cleanup_handler(int signum) {
303 if (signum == SIGINT) {
304 printf("\nCtrl+C detected. Performing cleanup...\n");
305
306 printf("Cleanup complete. Exiting.\n");
307 _exit(0);
308 }
309}
310
311// This part of the program runs at startup,
312// and parses input of from the user, and then

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected