|
@@ -26,16 +26,17 @@ boolean setup_ipc(char** envp){
|
|
|
return false;
|
|
|
}
|
|
|
//Si creation alors on remplie les segments
|
|
|
- printf("Errno %d\n", errno != EEXIST);
|
|
|
if(errno != EEXIST){
|
|
|
subdiv* sd = (subdiv*) ipc.gestionnaire.adr;
|
|
|
char* mem = (char*) ipc.memoire.adr;
|
|
|
+ int* nb = (int*) ipc.global.adr;
|
|
|
ini_subdiv(sd);
|
|
|
int i = 0;
|
|
|
while(envp[i] != NULL){
|
|
|
add_fdata_subdiv(sd, mem, envp[i]);
|
|
|
i++;
|
|
|
}
|
|
|
+ *nb = 0;
|
|
|
}
|
|
|
//SHM pour variable globale
|
|
|
if(!create_shm(&ipc.global, SHMCODEGLOB, sizeof(int))){
|