From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> The command handler shall be able to tell when it is done by calling bt_shell_noninteractive_quit. --- src/shared/shell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shared/shell.c b/src/shared/shell.c index e82307d6f..eae4ffbdd 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c @@ -951,10 +951,7 @@ bool bt_shell_attach(int fd) if (data.mode) { shell_exec(data.argc, data.argv); - if (!data.timeout) { - bt_shell_detach(); - mainloop_quit(); - } else + if (data.timeout) timeout_add(data.timeout * 1000, shell_quit, NULL, NULL); } -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html