MCPcopy Create free account
hub / github.com/covscript/covscript / signal_handler

Function signal_handler

sources/interpreter.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59#include <signal.h>
60
61void signal_handler(int sig)
62{
63 std::cout << "Keyboard Interrupt (Ctrl+C Received)" << std::endl;
64 cs::current_process->raise_sigint();
65}
66
67void activate_sigint_handler()
68{

Callers

nothing calls this directly

Calls 1

raise_sigintMethod · 0.80

Tested by

no test coverage detected