mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
macOS: Fix some kittens causing 100% CPU usage
This commit is contained in:
@@ -38,6 +38,8 @@ Changelog
|
|||||||
- macOS: Add aliases for close window and new tab actions that conform to common
|
- macOS: Add aliases for close window and new tab actions that conform to common
|
||||||
Apple shortcuts for these actions (:iss:`1313`)
|
Apple shortcuts for these actions (:iss:`1313`)
|
||||||
|
|
||||||
|
- macOS: Fix some kittens causing 100% CPU usage
|
||||||
|
|
||||||
|
|
||||||
0.13.2 [2019-01-04]
|
0.13.2 [2019-01-04]
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|||||||
@@ -153,8 +153,9 @@ class Loop:
|
|||||||
def __init__(self,
|
def __init__(self,
|
||||||
sanitize_bracketed_paste='[\x03\x04\x0e\x0f\r\x07\x7f\x8d\x8e\x8f\x90\x9b\x9d\x9e\x9f]'):
|
sanitize_bracketed_paste='[\x03\x04\x0e\x0f\r\x07\x7f\x8d\x8e\x8f\x90\x9b\x9d\x9e\x9f]'):
|
||||||
if is_macos:
|
if is_macos:
|
||||||
# On macOS PTY devices are not supported by the KqueueSelector
|
# On macOS PTY devices are not supported by the KqueueSelector and
|
||||||
self.asycio_loop = asyncio.SelectorEventLoop(selectors.PollSelector())
|
# the PollSelector is broken, causes 100% CPU usage
|
||||||
|
self.asycio_loop = asyncio.SelectorEventLoop(selectors.SelectSelector())
|
||||||
asyncio.set_event_loop(self.asycio_loop)
|
asyncio.set_event_loop(self.asycio_loop)
|
||||||
else:
|
else:
|
||||||
self.asycio_loop = asyncio.get_event_loop()
|
self.asycio_loop = asyncio.get_event_loop()
|
||||||
|
|||||||
Reference in New Issue
Block a user