Expand description
Process-lifecycle wiring: translate OS termination signals into a graceful
shutdown of the daemon’s CancellationToken, and lift the descriptor limit
the service manager starts it with.
Functions§
- install_
signal_ handlers - Spawns a task that cancels
shutdownwhen the process is asked to stop. - raise_
nofile_ limit - Raises the soft
RLIMIT_NOFILEtoward the hard limit, up toNOFILE_CEILING(4096), settling for a smaller value if the host refuses that one.