Berildocs GitHub

Memory cards

A signal handler runs on an arbitrary stack point

confidence: mediumupdated: 2026-11-25status: activeossignalasync

Claim#

Only async-signal-safe calls are allowed. A handler must be short and restart interrupted calls.

Test#

Send a signal during a blocking call. Check the handler and the restart.

Proof#

A safe handler with a restart or a clean exit.

Failure modes#

A malloc in a handler can deadlock. SA_RESTART hides the interruption.