version 1.35, 2011/09/20 15:45:53
|
version 1.36, 2011/09/20 16:57:50
|
Line 297 sem_init_SysV(sem_t *semaphore, int shar
|
Line 297 sem_init_SysV(sem_t *semaphore, int shar
|
return(-1); |
return(-1); |
} |
} |
|
|
sprintf((*semaphore).path, "%s/RPL-SIGSEMAPHORE-%d-%llX", |
sprintf((*semaphore).path, "%s/RPL-SEMAPHORE-%d-%llX-%d", |
racine_segment, pthread_self(), |
racine_segment, (int) getpid(), pthread_self(), shared); |
(int) getpid(), pthread_self()); |
|
|
|
if ((desc = open((*semaphore).path, O_RDWR | O_CREAT | O_EXCL, |
if ((desc = open((*semaphore).path, O_RDWR | O_CREAT | O_EXCL, |
S_IRUSR | S_IWUSR)) == -1) |
S_IRUSR | S_IWUSR)) == -1) |