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:
parent
7d2851442b
commit
f0fb6c6d4a
@ -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.
|
||||
*/
|
||||
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
|
||||
|
@ -405,14 +405,18 @@ spdk_app_init(struct spdk_app_opts *opts)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
spdk_app_fini(void)
|
||||
{
|
||||
spdk_subsystem_fini();
|
||||
int rc;
|
||||
|
||||
rc = spdk_subsystem_fini();
|
||||
spdk_trace_cleanup();
|
||||
spdk_app_remove_pidfile();
|
||||
spdk_conf_free(g_spdk_app.config);
|
||||
spdk_close_log();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user