mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Pass mode when opening existing shm buffer
This commit is contained in:
@@ -76,7 +76,7 @@ class SharedMemory:
|
||||
if tries <= 0:
|
||||
raise OSError(f'Failed to create a uniquely named SHM file, try shortening the prefix from: {prefix}')
|
||||
if self._fd < 0:
|
||||
self._fd = shm_open(name, flags)
|
||||
self._fd = shm_open(name, flags, mode)
|
||||
self._name = name
|
||||
try:
|
||||
if flags & os.O_CREAT and size:
|
||||
|
||||
Reference in New Issue
Block a user