MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / setup_handler

Function setup_handler

test/pthread/test_pthread_sigmask.c:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void setup_handler() {
36 struct sigaction act;
37 sigemptyset(&act.sa_mask);
38 act.sa_flags = SA_SIGINFO;
39 act.sa_sigaction = signal_handler;
40 sigaction(SIGTERM, &act, NULL);
41}
42
43void sleepms(long msecs) {
44 usleep(msecs * 1000);

Callers 1

mainFunction · 0.70

Calls 2

sigemptysetFunction · 0.85
sigactionClass · 0.70

Tested by

no test coverage detected