From 15085a1f8f9a1067c5ca52e52d73c270393e7252 Mon Sep 17 00:00:00 2001 From: taynpg Date: Fri, 16 May 2025 11:43:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3server=20ctrl-c?= =?UTF-8?q?=E9=80=80=E5=87=BA=E6=97=B6=E7=BB=88=E7=AB=AF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=81=A2=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .clang-format | 2 +- crashelper | 2 +- server/main.cpp | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.clang-format b/.clang-format index 36e4997..402f22e 100644 --- a/.clang-format +++ b/.clang-format @@ -11,7 +11,7 @@ ReflowComments: true SpacesBeforeTrailingComments: 3 TabWidth: 4 ConstructorInitializerAllOnOneLineOrOnePerLine: true -ColumnLimit: 130 +ColumnLimit: 80 AllowShortBlocksOnASingleLine: Never AllowShortFunctionsOnASingleLine: None AllowShortEnumsOnASingleLine: false diff --git a/crashelper b/crashelper index 2cf72f3..b9e7bdb 160000 --- a/crashelper +++ b/crashelper @@ -1 +1 @@ -Subproject commit 2cf72f3e5c5313527b5d1442017caf06d51a3c02 +Subproject commit b9e7bdb7349cc0c469800e42b309676fb5495be8 diff --git a/server/main.cpp b/server/main.cpp index a3c9012..e65a68c 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -28,10 +28,8 @@ namespace fs = std::filesystem; void msignal_handler(int signal) { - if (signal == SIGINT) { - fc_recovery_color(); - exit(signal); - } + fc_recovery_color(); + exit(signal); } int main(int argc, char* argv[])