cli: mimic behavior of BT1 when trying to attach to live session
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 24 Apr 2019 20:13:07 +0000 (16:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commit1e20174de25333862f77d17151525224afbb0662
treebee6ce9c73d006a9f727d6bee05a461ac2498656
parentadb623c27633580e01f7f7c29a1b91be762f0dd8
cli: mimic behavior of BT1 when trying to attach to live session

In Babeltrace 1, when trying to attach to a LTTng live session the
`babeltrace` command would exit with status 0 (SUCCESS) if it
successfully connected to the relay daemon _even if_ it did not find the
requested session.

To mimic the behavior of BT1, we set the `session-not-found-action`
parameter to "end". This makes the message iterator of an lttng-live
component return a END status if the requested session is not found
on the relay daemon and makes the cli return gracefully with SUCCESS.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I3b3810f97c090d102fd30902fda37434f62d5c01
cli/babeltrace-cfg-cli-args.c
This page took 0.024073 seconds and 4 git commands to generate.