Drop SIGWINCH sections

This commit is contained in:
2Shirt 2019-12-09 16:48:15 -07:00
parent cc85e3e8ed
commit 23c99084b5
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -139,12 +139,6 @@ class State():
# Init tmux and start a background process to maintain layout
self.init_tmux()
#TODO: Fix SIGWINCH?
#if hasattr(signal, 'SIGWINCH'):
# # Use signal handling
# signal.signal(signal.SIGWINCH, self.fix_tmux_layout)
#else:
# exe.start_thread(self.fix_tmux_layout_loop)
exe.start_thread(self.fix_tmux_layout_loop)
def abort_testing(self):
@ -218,13 +212,9 @@ class State():
std.sleep(60)
self.disk_safety_checks(wait_for_self_tests=False)
def fix_tmux_layout(self, forced=True, signum=None, frame=None):
def fix_tmux_layout(self, forced=True):
# pylint: disable=unused-argument
"""Fix tmux layout based on cfg.hw.TMUX_LAYOUT.
NOTE: To support being called by both a signal and a thread
signum and frame must be valid aguments.
"""
"""Fix tmux layout based on cfg.hw.TMUX_LAYOUT."""
try:
tmux.fix_layout(self.panes, self.layout, forced=forced)
except RuntimeError: