We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d8f38 commit 6902cb7Copy full SHA for 6902cb7
examples/server/server.cpp
@@ -3566,6 +3566,7 @@ int main(int argc, char ** argv) {
3566
sigemptyset (&sigint_action.sa_mask);
3567
sigint_action.sa_flags = 0;
3568
sigaction(SIGINT, &sigint_action, NULL);
3569
+ sigaction(SIGTERM, &sigint_action, NULL);
3570
#elif defined (_WIN32)
3571
auto console_ctrl_handler = +[](DWORD ctrl_type) -> BOOL {
3572
return (ctrl_type == CTRL_C_EVENT) ? (signal_handler(SIGINT), true) : false;
0 commit comments