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 <daniel.verkamp@intel.com>
This commit is contained in:
parent
a900f9ac9a
commit
cfc88a45d0
@ -866,7 +866,7 @@ int main(int argc, char **argv)
|
|||||||
worker = worker->next;
|
worker = worker->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
work_fn(g_workers);
|
rc = work_fn(g_workers);
|
||||||
|
|
||||||
worker = g_workers->next;
|
worker = g_workers->next;
|
||||||
while (worker != NULL) {
|
while (worker != NULL) {
|
||||||
@ -880,5 +880,5 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
unregister_controllers();
|
unregister_controllers();
|
||||||
|
|
||||||
return 0;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user