MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / setsignal

Function setsignal

third-party/lua-5.5.0/src/lua.c:46–52  ·  view source on GitHub ↗

** Use 'sigaction' when available. */

Source from the content-addressed store, hash-verified

44** Use 'sigaction' when available.
45*/
46static void setsignal (int sig, void (*handler)(int)) {
47 struct sigaction sa;
48 sa.sa_handler = handler;
49 sa.sa_flags = 0;
50 sigemptyset(&sa.sa_mask); /* do not mask any signal */
51 sigaction(sig, &sa, NULL);
52}
53
54#else /* }{ */
55

Callers 2

lactionFunction · 0.70
docallFunction · 0.70

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected