MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / sigint_handler

Function sigint_handler

smallthinker/tools/run/run.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(_WIN32)
38[[noreturn]] static void sigint_handler(int) {
39 printf("\n" LOG_COL_DEFAULT);
40 exit(0); // not ideal, but it's the only way to guarantee exit in all cases
41}
42#endif
43
44GGML_ATTRIBUTE_FORMAT(1, 2)

Callers 1

ctrl_c_handlingFunction · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected