tools/btmgmt: Return exit status for non-interactive 69/205069/1
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Mon, 26 Mar 2018 08:31:11 +0000 (17:31 +0900)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:20:06 +0000 (09:50 +0530)
Change-Id: If5aa34edd47a6405e5519bebc49a4d6814f3dfef
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
tools/btmgmt.c

index 4ac49bd..3af0d7f 100755 (executable)
@@ -4547,7 +4547,7 @@ int main(int argc, char *argv[])
 
        bt_shell_attach(fileno(stdin));
        update_prompt(mgmt_index);
-       bt_shell_run();
+       status = bt_shell_run();
 
        mgmt_cancel_all(mgmt);
        mgmt_unregister_all(mgmt);