MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / ActionHandler

Function ActionHandler

Source/Tools/FEXServer/Main.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66namespace {
67void ActionHandler(int sig, siginfo_t* info, void* context) {
68 // TODO: Fix this
69 if (sig == SIGINT) {
70 // Someone trying to kill us. Shutdown.
71 ProcessPipe::Shutdown();
72
73 // Clear "^C" string that most terminals print when pressing Ctrl+C.
74 fprintf(stderr, "\r");
75 return;
76 }
77 _exit(1);
78}
79
80void ActionIgnore(int sig, siginfo_t* info, void* context) {}
81

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
ShutdownFunction · 0.70

Tested by

no test coverage detected