1 Star 0 Fork 15

wang_yue111/qpid-proton

forked from src-openEuler/qpid-proton 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
for-non-constant-SIGSTKSZ.patch 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
wang_yue111 提交于 2021-08-10 11:52 . Patch for non-constant SIGSTKSZ
From 7d07d0587ba62ffb44112fbde8ccd189542f0099 Mon Sep 17 00:00:00 2001
From: wang_yue111 <[email protected]>
Date: Tue, 10 Aug 2021 11:26:13 +0800
Subject: [PATCH] Patch for non-constant SIGSTKSZ
---
tests/include/catch.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/include/catch.hpp b/tests/include/catch.hpp
index f619f23..9b342ec 100644
--- a/tests/include/catch.hpp
+++ b/tests/include/catch.hpp
@@ -6540,7 +6540,7 @@ namespace Catch {
static bool isSet;
static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
static stack_t oldSigStack;
- static char altStackMem[SIGSTKSZ];
+ static char altStackMem[32768];
static void handleSignal( int sig ) {
std::string name = "<unknown signal>";
@@ -6560,7 +6560,7 @@ namespace Catch {
isSet = true;
stack_t sigStack;
sigStack.ss_sp = altStackMem;
- sigStack.ss_size = SIGSTKSZ;
+ sigStack.ss_size = 32768;
sigStack.ss_flags = 0;
sigaltstack(&sigStack, &oldSigStack);
struct sigaction sa = { 0 };
@@ -6591,7 +6591,7 @@ namespace Catch {
bool FatalConditionHandler::isSet = false;
struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
stack_t FatalConditionHandler::oldSigStack = {};
- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
+ char FatalConditionHandler::altStackMem[32768] = {};
} // namespace Catch
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang_yue111/qpid-proton.git
[email protected]:wang_yue111/qpid-proton.git
wang_yue111
qpid-proton
qpid-proton
master

搜索帮助