Skip to content
UPEEC

signal.h

Handle asynchronous signals like `SIGINT` (Ctrl+C).

Intermediate
Comments 0

Handlers may only safely set a volatile sig_atomic_t flag — don't call printf inside them.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.