MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / setsignal

Function setsignal

3rd/lua-5.4.3/src/lua.c:45–51  ·  view source on GitHub ↗

** Use 'sigaction' when available. */

Source from the content-addressed store, hash-verified

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

Callers 2

lactionFunction · 0.85
docallFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected