Producteur ne doit pas creer de shm

This commit is contained in:
Philippe Pittoli 2011-03-31 16:56:32 +02:00
parent f98e582ea7
commit 507a59ca3b

View File

@ -39,7 +39,7 @@ int main( int argc, char **argv)
key_t sem_key_data = MUTEX_DATA;
key_t sem_key_tpa = MUTEX_TPA;
shmid = shmget(shm_key, sizeof(MEMP), 0766 | IPC_CREAT);
shmid = shmget(shm_key, sizeof(MEMP), 0766);
if (shmid == -1)