From 42a6847f2c115c9131e78558801bd631b86aa061 Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Mon, 26 Mar 2018 17:31:11 +0900 Subject: [PATCH] tools/btmgmt: Return exit status for non-interactive --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3