Skip to main content

Module process

Module process 

Source
Expand description

Process-level setup for latency-sensitive servers: signal handling and memory locking. Generic OS plumbing — no application coupling.

Functions§

install_shutdown_handler
Install SIGINT/SIGTERM handlers that flip shutdown on first signal and force-exit on the second. The caller must keep the Arc alive for the program’s lifetime — we publish its pointer to a signal-safe static so the handler can reach the flag.
try_lock_memory
Pin engine pages into RAM with mlockall, lock-on-fault.