From d2f105c3e2b472d0b0a5be4a1fa89db15e98499f Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Mon, 26 Mar 2018 17:31:06 +0900 Subject: [PATCH] tools/obexctl: Return exit status for non-interactive --- tools/obexctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/obexctl.c b/tools/obexctl.c index 3360972bd..f839ab0bd 100644 --- a/tools/obexctl.c +++ b/tools/obexctl.c @@ -2145,6 +2145,7 @@ static void property_changed(GDBusProxy *proxy, const char *name, int main(int argc, char *argv[]) { GDBusClient *client; + int status; bt_shell_init(argc, argv, NULL); bt_shell_set_menu(&main_menu); @@ -2161,11 +2162,11 @@ int main(int argc, char *argv[]) g_dbus_client_set_proxy_handlers(client, proxy_added, proxy_removed, property_changed, NULL); - bt_shell_run(); + status = bt_shell_run(); g_dbus_client_unref(client); dbus_connection_unref(dbus_conn); - return 0; + return status; } -- 2.47.3