projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: destroy schedule attr
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
stop.c
diff --git
a/src/bin/lttng/commands/stop.c
b/src/bin/lttng/commands/stop.c
index 336d887651d06b5872f222b652584b88b6fcbeb7..9d211d68b58d4ee37b44244aa3a56012f1f94c9f 100644
(file)
--- a/
src/bin/lttng/commands/stop.c
+++ b/
src/bin/lttng/commands/stop.c
@@
-172,6
+172,7
@@
int cmd_stop(int argc, const char **argv)
{
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
{
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
+ const char *leftover = NULL;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
@@
-228,6
+229,13
@@
int cmd_stop(int argc, const char **argv)
opt_session_name = (char*) poptGetArg(pc);
opt_session_name = (char*) poptGetArg(pc);
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
command_ret = stop_tracing();
if (command_ret) {
success = 0;
command_ret = stop_tracing();
if (command_ret) {
success = 0;
This page took
0.023329 seconds
and
4
git commands to generate.