--- rpl/src/semaphores.c 2016/03/17 16:31:58 1.74 +++ rpl/src/semaphores.c 2016/03/18 12:43:48 1.75 @@ -82,8 +82,8 @@ sem_init2(unsigned int valeur, pid_t pid return(SEM_FAILED); } - semaphore = sem_open(chemin, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, - valeur); + semaphore = sem_open(chemin, O_RDWR | O_CREAT /*| O_EXCL*/, + S_IRUSR | S_IWUSR, valeur); sys_free(chemin); return(semaphore); @@ -102,8 +102,8 @@ sem_init3(unsigned int valeur, pid_t pid return(SEM_FAILED); } - semaphore = sem_open(chemin, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR, - valeur); + semaphore = sem_open(chemin, O_CREAT | /*O_EXCL | */ O_RDWR, + S_IRUSR | S_IWUSR, valeur); sys_free(chemin); return(semaphore); @@ -301,7 +301,7 @@ sem_init_SysV(sem_t *semaphore, int shar (long long unsigned) pthread_self(), (long long unsigned) semaphore); - 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) { sys_free((*semaphore).path); @@ -888,7 +888,7 @@ sem_t va_end(liste); # ifndef OS2 // IPCS_SYSV - if ((desc = open(nom_absolu, O_CREAT | O_EXCL | O_RDWR, + if ((desc = open(nom_absolu, O_CREAT | /*O_EXCL |*/ O_RDWR, S_IRUSR | S_IWUSR)) == -1) { sys_free(semaphore);