projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Make test_per_application_leaks more robust
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
signal-helper.hpp
diff --git
a/tests/utils/testapp/signal-helper.hpp
b/tests/utils/testapp/signal-helper.hpp
index cff564951015382fde8b97ca20b6b3a67155284d..26272e37e4ad599a49acaa66677f8c67bc4c38d3 100644
(file)
--- a/
tests/utils/testapp/signal-helper.hpp
+++ b/
tests/utils/testapp/signal-helper.hpp
@@
-13,16
+13,14
@@
static volatile int should_quit;
static volatile int should_quit;
-static
-void sighandler(int sig)
+static void sighandler(int sig)
{
if (sig == SIGTERM) {
should_quit = 1;
}
}
{
if (sig == SIGTERM) {
should_quit = 1;
}
}
-static
-int set_signal_handler(void)
+static int set_signal_handler()
{
int ret;
struct sigaction sa {};
{
int ret;
struct sigaction sa {};
@@
-35,7
+33,7
@@
int set_signal_handler(void)
goto end;
}
goto end;
}
- ret = sigaction(SIGTERM, &sa,
NULL
);
+ ret = sigaction(SIGTERM, &sa,
nullptr
);
if (ret) {
perror("sigaction");
goto end;
if (ret) {
perror("sigaction");
goto end;
This page took
0.023781 seconds
and
4
git commands to generate.