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
shutdownon first signal and force-exit on the second. The caller must keep theArcalive 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.