Bug-AGL: SPEC-3352
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id466a9d5bc253e5c65f7f2db328b6ea794457726
struct weston_log_context *log_ctx = NULL;
struct weston_log_scope *log_scope;
struct weston_log_subscriber *logger;
struct weston_log_context *log_ctx = NULL;
struct weston_log_scope *log_scope;
struct weston_log_subscriber *logger;
+ int ret = EXIT_FAILURE;
const struct weston_option core_options[] = {
{ WESTON_OPTION_STRING, "backend", 'B', &backend },
const struct weston_option core_options[] = {
{ WESTON_OPTION_STRING, "backend", 'B', &backend },
log_ctx = weston_log_ctx_compositor_create();
if (!log_ctx) {
fprintf(stderr, "Failed to initialize weston debug framework.\n");
log_ctx = weston_log_ctx_compositor_create();
if (!log_ctx) {
fprintf(stderr, "Failed to initialize weston debug framework.\n");
}
log_scope = weston_compositor_add_log_scope(log_ctx, "log",
}
log_scope = weston_compositor_add_log_scope(log_ctx, "log",
+ ret = ivi.compositor->exit_code;
+
wl_display_destroy_clients(display);
error_compositor:
wl_display_destroy_clients(display);
error_compositor:
log_file_close();
if (ivi.config)
weston_config_destroy(ivi.config);
log_file_close();
if (ivi.config)
weston_config_destroy(ivi.config);