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

Function alarm_handler

test/test_sigalrm.c:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <emscripten/emscripten.h>
12
13void alarm_handler(int dummy) {
14 printf("Received alarm!\n");
15 emscripten_force_exit(0);
16}
17
18int main() {
19 if (signal(SIGALRM, alarm_handler) == SIG_ERR) {

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected