MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / NukeProcess

Function NukeProcess

examples/example_chat.cpp:44–52  ·  view source on GitHub ↗

We do this because I won't want to figure out how to cleanly shut down the thread that is reading from stdin.

Source from the content-addressed store, hash-verified

42// We do this because I won't want to figure out how to cleanly shut
43// down the thread that is reading from stdin.
44static void NukeProcess( int rc )
45{
46 #ifdef _WIN32
47 ExitProcess( rc );
48 #else
49 (void)rc; // Unused formal parameter
50 kill( getpid(), SIGKILL );
51 #endif
52}
53
54static void DebugOutput( ESteamNetworkingSocketsDebugOutputType eType, const char *pszMsg )
55{

Callers 2

DebugOutputFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected