Skip to content

Fix bluetoothctl --help hanging if daemon isn't running

Bastien Nocera linux-bluetooth 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 3 repliesIn review
  2. v37 patches 5 repliesSuperseded
  3. v27 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v4 from the cover letter

- dropped glib upgrade
- use pre_run menu hook to setup dbus if needed

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9client: Split installing submenu and doing I/Oclient/admin.c client/admin.h client/assistant.c +7 more+27 -61 reply
2/9client: Install submenus before contacting bluez daemonclient/main.c+5 -50 replies
3/9shared/shell: Add function to handle early help callssrc/shared/shell.c src/shared/shell.h+12 -00 replies
4/9client: Fix --help hanging if bluetoothd is not runningclient/main.c+2 -00 replies
5/9shared/shell: Add pre_run menu callbacksrc/shared/shell.c src/shared/shell.h+11 -00 replies
6/9client: Port "admin" menu to pre_runclient/admin.c client/admin.h client/main.c+11 -30 replies
7/9client: Port "player" menu to pre_runclient/main.c client/player.c client/player.h+8 -40 replies
8/9client: Port "mgmt" menu to pre_runclient/main.c client/mgmt.c client/mgmt.h +1 more+11 -100 replies
9/9client: Port "assistant" menu to pre_runclient/assistant.c client/assistant.h client/main.c+9 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [BlueZ v4 0/9] Fix bluetoothctl --help hanging if daemon isn't running

The changes are still made in a way that there's never a commit where something is broken that wasn't before, hence the function split happening first, before we enable and use pre_run.

Let me know if you want me to rejig this, I think that the end result is fine, but you might have a different opinion about the way we get to that result.

Cheers

Changes from v3:
- dropped glib upgrade
- use pre_run menu hook to setup dbus if needed

Changes from v2:
- rebased against latest upstream

Bastien Nocera (9):
client: Split installing submenu and doing I/O
client: Install submenus before contacting bluez daemon shared/shell: Add function to handle early help calls
client: Fix --help hanging if bluetoothd is not running shared/shell: Add pre_run menu callback
client: Port "admin" menu to pre_run
client: Port "player" menu to pre_run
client: Port "mgmt" menu to pre_run
client: Port "assistant" menu to pre_run

 client/admin.c     | 13 +++++++++++++
 client/assistant.c | 12 +++++++++++-
 client/main.c      | 13 +++++++------
 client/mgmt.c      | 23 +++++++++++++++++------
 client/mgmt.h      |  2 +-
 client/player.c    | 11 ++++++++++-
 src/shared/shell.c | 19 +++++++++++++++++++
 src/shared/shell.h |  4 ++++
 tools/btmgmt.c     |  6 +-----
 9 files changed, 83 insertions(+), 20 deletions(-)
Signature · 1 line
2.49.0