projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: snapshot record error handling
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 17dcfc41685a2562aa7d01f297cabe324af7354c..6a195e1bdd8352c752ab1b22de82bd08ac573faf 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-2577,13
+2577,7
@@
static int record_kernel_snapshot(struct ltt_kernel_session *ksess,
}
ret = kernel_snapshot_record(ksess, output, wait, nb_streams);
- if (ret < 0) {
- if (ret == -EINVAL) {
- ret = LTTNG_ERR_INVALID;
- goto error_snapshot;
- }
-
- ret = LTTNG_ERR_SNAPSHOT_FAIL;
+ if (ret != LTTNG_OK) {
goto error_snapshot;
}
This page took
0.026531 seconds
and
4
git commands to generate.