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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000 (00:12 -0400)
commit136906ad574dff33d6266173e577e3f2a9518d1f
treeb373956e15c8b1a2508588d9b6a1a61773a9b4c9
parentbd1b8063e8ff7063aae584a117fd28ea7192c149
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.024025 seconds and 5 git commands to generate.