MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / kill_server

Function kill_server

server/main.cpp:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void kill_server()
303{
304 wivrn_ipc_socket_main_loop->send(to_monado::stop{});
305
306 // Send SIGTERM after 1s if it is still running
307 server_kill_watch = g_timeout_add(1000, [](void *) {
308 assert(server_pid > 0);
309 kill(-server_pid, SIGTERM);
310 return G_SOURCE_REMOVE; }, 0);
311}
312
313void start_listening()
314{

Callers 1

update_fsmFunction · 0.85

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected