cli: remove the global volatile `interrupted` variable
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 14:25:17 +0000 (10:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 16:00:31 +0000 (12:00 -0400)
commitaede8fc9160e48cc3bc6803c8c337e1a5b6a364c
treec9bb8254428f530d95b13f72d397e44559e95822
parent647c6d450bb4312b2195fb9736eacc15a47f8e70
cli: remove the global volatile `interrupted` variable

We can use the global interrupter's state instead, and we don't need to
check the interruption status before calling bt_query_executor_query()
and bt_graph_run() as both functions check their interruption state
initially.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I3818843c44b016cf2b872d879b461eae52730e6b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1758
Tested-by: jenkins <jenkins@lttng.org>
src/cli/babeltrace2.c
This page took 0.024708 seconds and 4 git commands to generate.