summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-23 12:55:52 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-23 12:55:52 +0800
commitb02e484013ede3ed8d43ad19c177af2afb0bbfc8 (patch)
tree9a95524536d6b5f7e75b9007c41b32386eb675b8 /src/main.cpp
parentc98642129974de37ec5b46f4b7f52ba71e70dd46 (diff)
fix: std::quick_exit don't exist in osx
for some reason that don't work in macos, but _Exit does..
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 13ed842..e23877c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -13,7 +13,7 @@ static void handleSignal(int sig) {
switch (sig) {
default:
// quick_exit(less cleanup) if the cleanup took too long
- signal(SIGALRM, [](int) { std::quick_exit(1); });
+ signal(SIGALRM, [](int) { std::_Exit(1); });
alarm(5);
std::exit(0);