mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Forgot the / for semaphore name
This commit is contained in:
parent
fd17477f06
commit
573b75b1b2
|
@ -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]); }
|
||||
|
|
Loading…
Reference in a new issue