client: Return exit status for non-interactive 61/204961/1
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Mon, 26 Mar 2018 08:31:02 +0000 (17:31 +0900)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 26 Apr 2019 10:54:39 +0000 (16:24 +0530)
Change-Id: Icf727225fca0f15fb3c14061181a825133b9d175
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/main.c

index a9c92db..7916a0e 100644 (file)
@@ -2538,6 +2538,7 @@ static void client_ready(GDBusClient *client, void *user_data)
 int main(int argc, char *argv[])
 {
        GDBusClient *client;
+       int status;
 
        bt_shell_init(argc, argv, &opt);
        bt_shell_set_menu(&main_menu);
@@ -2565,7 +2566,7 @@ int main(int argc, char *argv[])
 
        g_dbus_client_set_ready_watch(client, client_ready, NULL);
 
-       bt_shell_run();
+       status = bt_shell_run();
 
        g_dbus_client_unref(client);
 
@@ -2575,5 +2576,5 @@ int main(int argc, char *argv[])
 
        g_free(auto_register_agent);
 
-       return 0;
+       return status;
 }