mirror of
https://github.com/fluencelabs/musl
synced 2025-06-05 02:51:40 +00:00
sem_open should make process-shared semaphores
this did not matter because we don't yet treat process-shared special. when private futex support is added, however, it will matter.
This commit is contained in:
parent
39f296a95b
commit
3d8d90c5cc
@ -71,7 +71,7 @@ sem_t *sem_open(const char *name, int flags, ...)
|
|||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return SEM_FAILED;
|
return SEM_FAILED;
|
||||||
}
|
}
|
||||||
sem_init(&newsem, 0, value);
|
sem_init(&newsem, 1, value);
|
||||||
clock_gettime(CLOCK_REALTIME, &ts);
|
clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
snprintf(tmp, sizeof(tmp), "/dev/shm/%p-%p-%d-%d",
|
snprintf(tmp, sizeof(tmp), "/dev/shm/%p-%p-%d-%d",
|
||||||
&name, name, (int)getpid(), (int)ts.tv_nsec);
|
&name, name, (int)getpid(), (int)ts.tv_nsec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user