Return-Path: Subject: [PATCH BlueZ 3/6] tools/bluetooth-player: Return exit status for non-interactive From: ERAMOTO Masaya To: "linux-bluetooth@vger.kernel.org" References: <5ebabd54-eae8-a7d1-2c22-ffedca75d6f3@jp.fujitsu.com> Message-ID: Date: Mon, 26 Mar 2018 17:31:04 +0900 MIME-Version: 1.0 In-Reply-To: <5ebabd54-eae8-a7d1-2c22-ffedca75d6f3@jp.fujitsu.com> Content-Type: text/plain; charset="utf-8" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- tools/bluetooth-player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c index 441a934cc..ccb0b5ee5 100644 --- a/tools/bluetooth-player.c +++ b/tools/bluetooth-player.c @@ -1119,6 +1119,7 @@ static void property_changed(GDBusProxy *proxy, const char *name, int main(int argc, char *argv[]) { GDBusClient *client; + int status; bt_shell_init(argc, argv, NULL); bt_shell_set_menu(&main_menu); @@ -1134,11 +1135,11 @@ int main(int argc, char *argv[]) g_dbus_client_set_proxy_handlers(client, proxy_added, proxy_removed, property_changed, NULL); - bt_shell_run(); + status = bt_shell_run(); g_dbus_client_unref(client); dbus_connection_unref(dbus_conn); - return 0; + return status; } -- 2.14.1