Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2019-05-15 09:19:11 +02:00
commit b2bcef16c9
3 changed files with 11 additions and 3 deletions

View file

@ -122,6 +122,14 @@ namespace IPC {
#else
if (oflag & O_CREAT) {
mySem = sem_open(name, oflag, mode, value);
#if defined(__APPLE__)
if (!(*this)){
if (sem_unlink(name) == 0){
INFO_MSG("Deleted in-use semaphore: %s", name);
mySem = sem_open(name, oflag, mode, value);
}
}
#endif
} else {
mySem = sem_open(name, oflag);
}