mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
Fix culling sessions with named groups
* tmux 2.4 changed the groups to be names instead of numbers:
c6a3446398
This commit is contained in:
parent
cb9467a142
commit
8c2de314ac
1 changed files with 2 additions and 2 deletions
|
@ -99,10 +99,10 @@ def cull_zombies(session_name):
|
||||||
if not output:
|
if not output:
|
||||||
return
|
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
|
# the group number to be extra sure the right session is getting
|
||||||
# killed. We don't want to accidentally kill the wrong one
|
# 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)
|
master = re.search(pattern, output, re.MULTILINE)
|
||||||
if not master:
|
if not master:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue