projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumerd: crash occurs when taking snapshot of ust channel
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ust-nevents-str
/
gen-ust-nevents-str.c
diff --git
a/tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c
b/tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c
index 6d90bfc66524c49cf961e7e624538d0e53905cbc..49ad5180678cac48a0f32feba8bc84cfb020a57b 100644
(file)
--- a/
tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c
+++ b/
tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c
@@
-17,15
+17,18
@@
#define _LGPL_SOURCE
#include <stdio.h>
#define _LGPL_SOURCE
#include <stdio.h>
+#include "signal-helper.h"
#define TRACEPOINT_DEFINE
#include "tp.h"
int main(int argc, char **argv)
{
#define TRACEPOINT_DEFINE
#include "tp.h"
int main(int argc, char **argv)
{
- int count;
- int i;
- int arg_i;
+ int count = 0, i = 0, arg_i = 0;
+
+ if (set_signal_handler()) {
+ return 1;
+ }
if (argc <= 3) {
fprintf(stderr, "Usage: %s COUNT STRING [STRING]...\n",
if (argc <= 3) {
fprintf(stderr, "Usage: %s COUNT STRING [STRING]...\n",
@@
-48,6
+51,9
@@
int main(int argc, char **argv)
if (arg_i == argc) {
arg_i = 2;
}
if (arg_i == argc) {
arg_i = 2;
}
+ if (should_quit) {
+ break;
+ }
}
return 0;
}
return 0;
This page took
0.024813 seconds
and
4
git commands to generate.