mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
kittens: Don't fail on systems that return invalid values for SC_IOV_MAX. Fixes #558
This commit is contained in:
@@ -170,7 +170,7 @@ class Loop:
|
||||
self.read_buf = ''
|
||||
self.decoder = codecs.getincrementaldecoder('utf-8')('ignore')
|
||||
try:
|
||||
self.iov_limit = os.sysconf('SC_IOV_MAX') - 1
|
||||
self.iov_limit = max(os.sysconf('SC_IOV_MAX') - 1, 255)
|
||||
except Exception:
|
||||
self.iov_limit = 255
|
||||
self.parse_input_from_terminal = partial(parse_input_from_terminal, self._on_text, self._on_dcs, self._on_csi, self._on_osc, self._on_pm, self._on_apc)
|
||||
|
||||
Reference in New Issue
Block a user