projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Check that lttng create --live's time is not zero
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
create.c
diff --git
a/src/bin/lttng/commands/create.c
b/src/bin/lttng/commands/create.c
index b8d9f3b5655c56975bfa1716a08065b86ca1ca14..ba62940c62fbb4dec65057d9942250d6c7d8fa7a 100644
(file)
--- a/
src/bin/lttng/commands/create.c
+++ b/
src/bin/lttng/commands/create.c
@@
-597,6
+597,11
@@
int cmd_create(int argc, const char **argv)
ret = CMD_ERROR;
goto end;
}
+ if (v == 0) {
+ ERR("Live timer interval must be greater than zero");
+ ret = CMD_ERROR;
+ goto end;
+ }
opt_live_timer = (uint32_t) v;
DBG("Session live timer interval set to %d", opt_live_timer);
break;
This page took
0.02299 seconds
and
4
git commands to generate.