MCPcopy Create free account
hub / github.com/JibbSmart/JoyShockMapper / terminateHandler

Function terminateHandler

JoyShockMapper/src/linux/Init.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "InputHelpers.h"
14
15static void terminateHandler(int signo)
16{
17 if (signo != SIGTERM && signo != SIGINT)
18 {
19 std::fprintf(stderr, "Caught unexpected signal %d\n", signo);
20 return;
21 }
22
23 WriteToConsole("QUIT");
24}
25
26static const int initialize = [] {
27 std::string appRootDir{};

Callers

nothing calls this directly

Calls 1

WriteToConsoleFunction · 0.70

Tested by

no test coverage detected