*enlever lerreur de la fonction

This commit is contained in:
rivka_zan 2004-02-22 19:19:49 +00:00 committed by Glenn Y. Rolland
parent 302fbaff09
commit e9a70f33ed

View file

@ -36,7 +36,8 @@ sem_t * sem;
int msgSpaceListLock(){ int msgSpaceListLock(){
/*Ouverture d'un verrou d'un semafore*/ /*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"); printf("erreur de semaphore");
return -1; return -1;
} }