--- rpl/src/semaphores.c 2015/11/26 11:44:43 1.72 +++ rpl/src/semaphores.c 2016/03/18 12:43:48 1.75 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.24 - Copyright (C) 1989-2015 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.25 + Copyright (C) 1989-2016 Dr. BERTRAND Joël This file is part of RPL/2. @@ -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);