INNER CODE UNIT · Python

signal_handler

RekklesNA/ProxmoxMCP-Plus · src/proxmox_mcp/server.py:393

        def signal_handler(signum: int, frame: object) -> None:
            self.logger.info("Received signal to shutdown...")
            if uses_stdio:
                try:
                    self.close()
                finally:
                    _exit_without_finalization()
            else:
                self.close()
                sys.exit(0)

        signal.signal(signal.SIGINT, signal_handler)
        signal.signal(signal.SIGTERM, signal_handler)

        try:
            self.logger.info("Starting Proxmox MCP Server with transport: %s", transport)

            if transport == "STDIO":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…