mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-21 20:28:06 +00:00
Pass mode when opening existing shm buffer
This commit is contained in:
parent
f6cbca1aeb
commit
ba401c19c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue