From e9a70f33ed988140c65b6f2bc63a1e1301e5c7a4 Mon Sep 17 00:00:00 2001 From: rivka_zan Date: Sun, 22 Feb 2004 19:19:49 +0000 Subject: [PATCH] *enlever lerreur de la fonction --- src/nzg_msgList.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nzg_msgList.c b/src/nzg_msgList.c index 44a5cd2..20af9ef 100644 --- a/src/nzg_msgList.c +++ b/src/nzg_msgList.c @@ -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; }