You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the comment #271, this occurs when multiple processes use a NamedMutex with the same name.
The constructor in Foundation/src/NamedMutex_UNIX.cpp creates a semaphore if it does not exist and holds _owned=true.
If another process instantiates a NamedMutex with the same name, it holds its _semid.
After that, when a process with _owned=true terminates, the semaphore is deleted, but the _semid of the other process continues to remain.
Then, semop always fails because the semaphore has been deleted,
To Reproduce
Process A creates a NamedMutex
Process B creates a NamedMutex with the same name
Process A terminates
Process B acquires the lock (but fails)
Environment information
OS Type and Version: Rocky Linux 8
POCO Version: 1.12.1
The text was updated successfully, but these errors were encountered:
Description
As mentioned in the comment #271, this occurs when multiple processes use a NamedMutex with the same name.
The constructor in Foundation/src/NamedMutex_UNIX.cpp creates a semaphore if it does not exist and holds
_owned=true
.If another process instantiates a NamedMutex with the same name, it holds its
_semid
.After that, when a process with
_owned=true
terminates, the semaphore is deleted, but the_semid
of the other process continues to remain.Then,
semop
always fails because the semaphore has been deleted,To Reproduce
Environment information
The text was updated successfully, but these errors were encountered: