-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add signal handling for orderly shutdown
- Add 'signalHandler' function to handle SIGINT for graceful shutdown - Update 'consoleHandler' and WebSocket handler loop to check for a 'running' atomic flag - Signal processing in 'main.cpp' to intercept SIGINT and set the 'running' flag to false - Add '<csignal>' and '<atomic>' headers for signal handling and atomic operations These changes ensure that the application can be terminated properly when interrupted by SIGINT (Ctrl+C).
- Loading branch information
arkadiusz
committed
Jul 26, 2024
1 parent
5fcb351
commit 3920485
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters