diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 78b0ea15..a56a8363 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -99,10 +99,10 @@ def cull_zombies(session_name): if not output: return - # Find the master session to extract the group number. We use + # Find the master session to extract the group name. 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 \\w+)\\).*$" % session_name master = re.search(pattern, output, re.MULTILINE) if not master: return