提交 e5aa9825 编写于 作者: F FondMemoryVVV

Modify the format

Signed-off-by: NFondMemoryVVV <mashuai53@huawei.com>
上级 5b57a840
......@@ -30,7 +30,6 @@
#include "gtest/gtest.h"
#include "runtest.h"
using handler_type = void (*) (int);
using namespace std;
using namespace testing::ext;
using namespace testing;
......@@ -69,11 +68,12 @@ static int runTests(const char *argvs)
int timeoutsec = 5, timeout = 0;
int status, pid;
sigset_t set;
void (*retfunc)(int);
sigemptyset(&set);
sigaddset(&set, SIGCHLD);
sigprocmask(SIG_BLOCK, &set, nullptr);
handler_type retfunc = signal(SIGCHLD, handler);
retfunc = signal(SIGCHLD, handler);
if (retfunc == SIG_ERR) {
printf("signal triggering failed:%s\n", strerror(errno));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册