Skip to contentSkip to conversation

tools/btmgmt: Fix btmgmt --help hanging

PATCH Applied Bastien Nocera 3 participants 4 messages Mar 11 – Mar 17 Bluetooth drivers

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 tools/btmgmt: Fix btmgmt --help hanging

btmgmt when run interactively would wait for commands on its prompt, but that prompt is never setup when the help output is requested.

Handle --help through bt_shell_handle_non_interactive_help() so that the application exits as soon as the help content has been printed, like other interactive apps in bluez.

---
 tools/btmgmt.c | 3 +++
 1 file changed, 3 insertions(+)
tools/btmgmt.c +3 -0
index 0f3de2880014..762a3a141c4a 100644
@@ -47,6 +47,9 @@ int main(int argc, char *argv[])
 	bt_shell_init(argc, argv, &opt);
 
 	mgmt_add_submenu();
+
+	bt_shell_handle_non_interactive_help();
+
 	mgmt_set_index(index_option);
 	bt_shell_attach(fileno(stdin));
 	status = bt_shell_run();
Signature · 1 line
2.53.0
#2 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1064985

---Test result---

Test Summary:

CheckPatch                    PENDING   0.32 seconds
GitLint                       PENDING   0.44 seconds
BuildEll                      PASS      18.09 seconds
BluezMake                     PASS      616.44 seconds
MakeCheck                     PASS      17.79 seconds
MakeDistcheck                 PASS      224.98 seconds
CheckValgrind                 PASS      279.97 seconds
CheckSmatch                   PASS      315.68 seconds
bluezmakeextell               PASS      168.03 seconds
IncrementalBuild              PENDING   0.39 seconds
ScanBuild                     PASS      932.64 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:

https://github.com/bluez/bluez/pull/1955/checks

---
Regards,
Linux Bluetooth

#3 lore raw
In reply to Bastien Nocera
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 8 lines · On Wed, 11 Mar 2026 12:14:12 +0100 you wrote:

Another one of those. Wrote a test case again to avoid regressions :)

https://github.com/hadess/bluez/commit/81dcf1794b510a41c7b9b6ec53376cb5322b0bd2

Bastien Nocera (1):
tools/btmgmt: Fix btmgmt --help hanging

[...]

Here is the summary with links:
- [BlueZ,1/1] tools/btmgmt: Fix btmgmt --help hanging

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=52c2b37d90c0

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html