babeltrace(1): handle SIGINT to cancel the graph gracefully
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 13 May 2017 01:14:11 +0000 (21:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:43 +0000 (12:57 -0400)
commit5401f7805580b24f88459d94c901c8f1184877a1
tree65af2c9fea08a63f3442ea3e422ad90a548899cc
parentbd14d76835630e092320c8a04300088242dcdc99
babeltrace(1): handle SIGINT to cancel the graph gracefully

It goes like this:

1. Ctrl+C
2. SIGINT
3. sigint_handler()
4. Cancel the application's graph.
5. bt_graph_run() eventually returns BT_GRAPH_STATUS_CANCELED or
   BT_GRAPH_STATUS_AGAIN.
6. When we get those statuses, we check if the graph is canceled and
   quit the loop if so.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace.c
lib/graph/graph.c
This page took 0.024258 seconds and 4 git commands to generate.