summaryrefslogtreecommitdiff
path: root/tools/btmgmt.c
diff options
context:
space:
mode:
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>2018-03-26 17:31:11 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-03-27 13:58:21 +0300
commit42a6847f2c115c9131e78558801bd631b86aa061 (patch)
treee738505bdf4b71cd8d9ead9e045d4a7a0c5fc21e /tools/btmgmt.c
parentd2f105c3e2b472d0b0a5be4a1fa89db15e98499f (diff)
downloadbluez-42a6847f2c115c9131e78558801bd631b86aa061.tar.gz
tools/btmgmt: Return exit status for non-interactive
Diffstat (limited to 'tools/btmgmt.c')
-rw-r--r--tools/btmgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 122c46d0d..f60bb8b53 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -4416,7 +4416,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);