From cfc88a45d057c15304720f1ef6de860f396c3c14 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 3 Nov 2015 13:37:12 -0700 Subject: [PATCH] nvme/perf: capture master lcore return code Previously, if the work function on the master lcore failed, the perf program would still return with a successful exit code. Change-Id: Iec91c1f60824759ae62476ef6dce670fd402ddc5 Signed-off-by: Daniel Verkamp --- examples/nvme/perf/perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index a5759441d..d4b636fda 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -866,7 +866,7 @@ int main(int argc, char **argv) worker = worker->next; } - work_fn(g_workers); + rc = work_fn(g_workers); worker = g_workers->next; while (worker != NULL) { @@ -880,5 +880,5 @@ int main(int argc, char **argv) unregister_controllers(); - return 0; + return rc; }