Function setup_signal_handlers

Function Documentation

void setup_signal_handlers()

Sets up OS signal handlers for graceful shutdown.

Registers handlers for SIGINT (Ctrl+C) and SIGTERM. This allows the application to gracefully terminate long-running operations and safely release resources before exiting.