* [PATCH BlueZ v1] shared/shell: Fix not dequeueing command
@ 2026-01-26 14:47 Luiz Augusto von Dentz
2026-01-26 15:43 ` [BlueZ,v1] " bluez.test.bot
2026-01-26 17:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-01-26 14:47 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If script execution started with command that call
bt_shell_noninteractive_quit directly it wouldn't execute the next
command since data.line wouldn't be set.
---
src/shared/shell.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 15f21efef61a..f014d8f7c2b2 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -269,8 +269,6 @@ static void cmd_export(int argc, char *argv[])
static int bt_shell_queue_exec(char *line)
{
- int err;
-
/* Ignore comments */
if (line[0] == '#')
return 0;
@@ -288,12 +286,9 @@ static int bt_shell_queue_exec(char *line)
}
bt_shell_printf("%s\n", line);
+ data.line = strdup(line);
- err = bt_shell_exec(line);
- if (!err)
- data.line = strdup(line);
-
- return err;
+ return bt_shell_exec(line);
}
static bool bt_shell_input_line(struct input *input)
--
2.52.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ,v1] shared/shell: Fix not dequeueing command
2026-01-26 14:47 [PATCH BlueZ v1] shared/shell: Fix not dequeueing command Luiz Augusto von Dentz
@ 2026-01-26 15:43 ` bluez.test.bot
2026-01-26 17:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-01-26 15:43 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1622 bytes --]
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=1047149
---Test result---
Test Summary:
CheckPatch PENDING 0.38 seconds
GitLint PENDING 0.49 seconds
BuildEll PASS 20.09 seconds
BluezMake PASS 658.01 seconds
MakeCheck PASS 18.17 seconds
MakeDistcheck PASS 247.03 seconds
CheckValgrind PASS 301.05 seconds
CheckSmatch WARNING 357.92 seconds
bluezmakeextell PASS 185.68 seconds
IncrementalBuild PENDING 0.38 seconds
ScanBuild PASS 1048.09 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v1] shared/shell: Fix not dequeueing command
2026-01-26 14:47 [PATCH BlueZ v1] shared/shell: Fix not dequeueing command Luiz Augusto von Dentz
2026-01-26 15:43 ` [BlueZ,v1] " bluez.test.bot
@ 2026-01-26 17:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-01-26 17:50 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 26 Jan 2026 09:47:05 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> If script execution started with command that call
> bt_shell_noninteractive_quit directly it wouldn't execute the next
> command since data.line wouldn't be set.
> ---
> src/shared/shell.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
Here is the summary with links:
- [BlueZ,v1] shared/shell: Fix not dequeueing command
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=825015d82e2e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-26 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 14:47 [PATCH BlueZ v1] shared/shell: Fix not dequeueing command Luiz Augusto von Dentz
2026-01-26 15:43 ` [BlueZ,v1] " bluez.test.bot
2026-01-26 17:50 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox