[PATCH BlueZ 04/14] shared/shell: Do not quit immediatelly on noninteractive mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux