Fixed all semaphore instances not being cleaned up properly.
This commit is contained in:
parent
dda9ed54b4
commit
f4b296164e
14 changed files with 77 additions and 63 deletions
|
|
@ -132,7 +132,7 @@ namespace IPC {
|
|||
while (!(*this) && timer++ < 10) {
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
std::string semaName = "Global\\";
|
||||
semaName += name;
|
||||
semaName += (name+1);
|
||||
if (oflag & O_CREAT) {
|
||||
if (oflag & O_EXCL) {
|
||||
//attempt opening, if succes, close handle and return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue