Commit f0fb6c6d authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 7d285144
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+6 −2
Original line number Diff line number Diff line
@@ -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