*enlever lerreur de la fonction
This commit is contained in:
parent
302fbaff09
commit
e9a70f33ed
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ sem_t * sem;
|
|||
int msgSpaceListLock(){
|
||||
|
||||
/*Ouverture d'un verrou d'un semafore*/
|
||||
if((int)sem=sem_open(spaceList,O_CREAT|O_EXCL, 0666,1024) ==-1){
|
||||
sem=sem_open(spaceList,O_CREAT|O_EXCL,0666,1024);
|
||||
if(sem==SEM_FAILED){
|
||||
printf("erreur de semaphore");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue