Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
void alarm_handler(int dummy) {
14
printf(
"Received alarm!\n"
);
15
emscripten_force_exit(0);
16
}
17
18
int main() {
19
if (signal(SIGALRM, alarm_handler) == SIG_ERR) {
Callers
nothing calls this directly
Calls
1
printf
Function · 0.85
Tested by
no test coverage detected