Forgot the / for semaphore name

This commit is contained in:
Learath2 2017-08-31 11:01:54 +02:00 committed by def
parent fd17477f06
commit 573b75b1b2

View file

@ -670,7 +670,7 @@ void semaphore_init(SEMAPHORE *sem)
break;
char aBuf[32];
str_format(aBuf, sizeof(aBuf), "%d-ddphore-%d", pid(), *sem);
str_format(aBuf, sizeof(aBuf), "/%d-ddphore-%d", pid(), *sem);
g_aSemaphores[*sem] = sem_open(aBuf, O_CREAT | O_EXCL, S_IRWXU | S_IRWXG, 0);
}
void semaphore_wait(SEMAPHORE *sem) { sem_wait(g_aSemaphores[*sem]); }