From ed8bf19ec2827b0c647bfde7043a0cf75488ae15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Mon, 25 Sep 2017 12:16:48 +0200 Subject: [PATCH] Fix hang when 'tuned-adm profile' is given empty profile name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ondřej Lysoněk --- tuned/admin/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py index 8d1b107..faf215f 100644 --- a/tuned/admin/admin.py +++ b/tuned/admin/admin.py @@ -222,7 +222,7 @@ class Admin(object): return self._action_dbus_list() profile_name = " ".join(profiles) if profile_name == "": - return False + return self._controller.exit(False) self._daemon_action_finished.clear() (ret, msg) = self._controller.switch_profile(profile_name) if self._async or not ret: