[New-bugs-announce] [issue38035] shared_semaphores cannot be shared across unrelated processes

Vinay Sharma 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)
messages: 351176
nosy: vinay0410
priority: normal
severity: normal
status: open
title: shared_semaphores cannot be shared across unrelated processes
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38035>
_______________________________________


More information about the New-bugs-announce mailing list