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 @@ def __init__(
|
|||
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…
Reference in a new issue