From: Philippe Proulx Date: Sat, 13 May 2017 22:44:45 +0000 (-0400) Subject: cli/babeltrace.c: handle usleep()'s error X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=cfa4637b6dc16692035e47ed10613f29e03af29a;p=deliverable%2Fbabeltrace.git cli/babeltrace.c: handle usleep()'s error Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/cli/babeltrace.c b/cli/babeltrace.c index a5f8072c7..00dc4985a 100644 --- a/cli/babeltrace.c +++ b/cli/babeltrace.c @@ -1612,7 +1612,10 @@ int cmd_run(struct bt_config *cfg) cfg->cmd_data.run.retry_duration_us); if (usleep(cfg->cmd_data.run.retry_duration_us)) { - // TODO: check EINTR and signal handler + if (bt_graph_is_canceled(ctx.graph)) { + BT_LOGI_STR("Graph was canceled by user."); + goto error; + } } } break;