[New-bugs-announce] [issue38035] shared_semaphores cannot be shared across unrelated processes
report at bugs.python.org
Thu Sep 5 01:01:08 EDT 2019
New submission from Vinay Sharma <vinay0410sharma at gmail.com>:
Currently, shared semaphores can only be created, and existing semaphores can't be opened. Shared semaphores are opened using the following command.
sem_open(name, O_CREAT | O_EXCL, 0600, val)
This will raise error if a semaphore which already exists.
This behaviour works well when the file descriptors of these semaphores can be shared with children processes.
But, it doesn't work when an unrelated process which needs access to shared semaphore tries to open it.
components: Library (Lib)
title: shared_semaphores cannot be shared across unrelated processes
versions: Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce