projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: help message for Python agent mentions Java
[lttng-tools.git]
/
src
/
bin
/
lttng
/
lttng.c
diff --git
a/src/bin/lttng/lttng.c
b/src/bin/lttng/lttng.c
index a676be825684d5bd70d34753feb72343ef639322..34ccd59c517a6a737f8953cc717f4de28e8f9f60 100644
(file)
--- a/
src/bin/lttng/lttng.c
+++ b/
src/bin/lttng/lttng.c
@@
-16,6
+16,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <getopt.h>
#include <signal.h>
#include <stdio.h>
#include <getopt.h>
#include <signal.h>
#include <stdio.h>
@@
-83,8
+84,6
@@
static struct cmd_struct commands[] = {
{ "snapshot", cmd_snapshot},
{ "save", cmd_save},
{ "load", cmd_load},
{ "snapshot", cmd_snapshot},
{ "save", cmd_save},
{ "load", cmd_load},
- { "enable-consumer", cmd_enable_consumer}, /* OBSOLETE */
- { "disable-consumer", cmd_disable_consumer}, /* OBSOLETE */
{ NULL, NULL} /* Array closure */
};
{ NULL, NULL} /* Array closure */
};
@@
-485,9
+484,17
@@
static int parse_args(int argc, char **argv)
break;
case OPT_SESSION_PATH:
opt_sessiond_path = strdup(optarg);
break;
case OPT_SESSION_PATH:
opt_sessiond_path = strdup(optarg);
+ if (!opt_sessiond_path) {
+ ret = -1;
+ goto error;
+ }
break;
case OPT_RELAYD_PATH:
opt_relayd_path = strdup(optarg);
break;
case OPT_RELAYD_PATH:
opt_relayd_path = strdup(optarg);
+ if (!opt_relayd_path) {
+ ret = -1;
+ goto error;
+ }
break;
case OPT_DUMP_OPTIONS:
list_options(stdout);
break;
case OPT_DUMP_OPTIONS:
list_options(stdout);
This page took
0.02462 seconds
and
4
git commands to generate.