diff --git a/docs/changelog.rst b/docs/changelog.rst index c2420ad0c..55a077b9d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -95,6 +95,8 @@ Detailed list of changes - Fix using :opt:`cursor` = ``none`` not working on text that has reverse video (:iss:`5897`) +- Fix ssh kitten not working on FreeBSD (:iss:`5928`) + 0.26.5 [2022-11-07] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kittens/ssh/utils.py b/kittens/ssh/utils.py index fcae4e24b..c501d165e 100644 --- a/kittens/ssh/utils.py +++ b/kittens/ssh/utils.py @@ -83,7 +83,7 @@ def create_shared_memory(data: Any, prefix: str) -> str: from kitty.shm import SharedMemory db = json.dumps(data).encode('utf-8') - with SharedMemory(size=len(db) + SharedMemory.num_bytes_for_size, mode=stat.S_IREAD, prefix=prefix) as shm: + with SharedMemory(size=len(db) + SharedMemory.num_bytes_for_size, prefix=prefix) as shm: shm.write_data_with_size(db) shm.flush() atexit.register(shm.unlink)