event: return status code from spdk_app_fini()

Change the return type from void to int so that the result of
spdk_subsystem_fini() can be reported.

Change-Id: I811c25513e41573ca0c9cb111512d7705d107f66
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-09-23 11:17:03 -07:00
parent 7d2851442b
commit f0fb6c6d4a
2 changed files with 7 additions and 3 deletions

View File

@ -159,7 +159,7 @@ void spdk_app_init(struct spdk_app_opts *opts);
/** /**
* \brief Perform final shutdown operations on an application using the event framework. * \brief Perform final shutdown operations on an application using the event framework.
*/ */
void spdk_app_fini(void); int spdk_app_fini(void);
/** /**
* \brief Start the framework. Once started, the framework will call start_fn on the master * \brief Start the framework. Once started, the framework will call start_fn on the master

View File

@ -405,14 +405,18 @@ spdk_app_init(struct spdk_app_opts *opts)
} }
} }
void int
spdk_app_fini(void) spdk_app_fini(void)
{ {
spdk_subsystem_fini(); int rc;
rc = spdk_subsystem_fini();
spdk_trace_cleanup(); spdk_trace_cleanup();
spdk_app_remove_pidfile(); spdk_app_remove_pidfile();
spdk_conf_free(g_spdk_app.config); spdk_conf_free(g_spdk_app.config);
spdk_close_log(); spdk_close_log();
return rc;
} }
int int