From 72e8630b1d19e0b6d322c13e28afea206aee8014 Mon Sep 17 00:00:00 2001 From: Chow Loong Jin Date: Thu, 5 Oct 2017 13:29:38 +0800 Subject: [PATCH] Fix cull_zombies() for sessions with non-numeric names --- usr/lib/byobu/include/select-session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 78b0ea15..22e7fcc3 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -102,7 +102,7 @@ def cull_zombies(session_name): # Find the master session to extract the group number. We use # the group number to be extra sure the right session is getting # killed. We don't want to accidentally kill the wrong one - pattern = "^%s:.+\\((group \\d+)\\).*$" % session_name + pattern = "^%s:.+\\((group [^\\)]+)\\).*$" % session_name master = re.search(pattern, output, re.MULTILINE) if not master: return