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

Function setup_handler

test/pthread/test_pthread_kill.c:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void setup_handler() {
35 struct sigaction act;
36 sigemptyset(&act.sa_mask);
37 act.sa_flags = SA_SIGINFO;
38 act.sa_sigaction = signal_handler;
39 sigaction(SIGTERM, &act, NULL);
40 sigaction(SIGUSR1, &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