version 1.36, 2011/09/20 08:56:23
|
version 1.37, 2011/09/20 09:51:42
|
Line 800 instruction_poke(struct_processus *s_eta
|
Line 800 instruction_poke(struct_processus *s_eta
|
.pipe_nombre_injections[1], "-", |
.pipe_nombre_injections[1], "-", |
sizeof(unsigned char))) != sizeof(unsigned char)) |
sizeof(unsigned char))) != sizeof(unsigned char)) |
{ |
{ |
if (sem_wait( |
while(sem_wait( |
&((*s_etat_processus).semaphore_fork)) != 0) |
&((*s_etat_processus).semaphore_fork)) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
if (errno != EINTR) |
return; |
{ |
|
(*s_etat_processus).erreur_systeme = |
|
d_es_processus; |
|
return; |
|
} |
} |
} |
|
|
if (longueur_ecriture == -1) |
if (longueur_ecriture == -1) |
Line 866 instruction_poke(struct_processus *s_eta
|
Line 870 instruction_poke(struct_processus *s_eta
|
} |
} |
} |
} |
|
|
if (sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |
while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
if (errno != EINTR) |
return; |
{ |
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
|
return; |
|
} |
} |
} |
|
|
if (registre_stop == 0) |
if (registre_stop == 0) |
Line 1022 instruction_poke(struct_processus *s_eta
|
Line 1029 instruction_poke(struct_processus *s_eta
|
.pipe_nombre_injections[1], "-", |
.pipe_nombre_injections[1], "-", |
sizeof(unsigned char))) != sizeof(unsigned char)) |
sizeof(unsigned char))) != sizeof(unsigned char)) |
{ |
{ |
if (sem_wait( |
while(sem_wait( |
&((*s_etat_processus).semaphore_fork)) != 0) |
&((*s_etat_processus).semaphore_fork)) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
if (errno != EINTR) |
return; |
{ |
|
(*s_etat_processus).erreur_systeme = |
|
d_es_processus; |
|
return; |
|
} |
} |
} |
|
|
if (longueur_ecriture == -1) |
if (longueur_ecriture == -1) |
Line 1088 instruction_poke(struct_processus *s_eta
|
Line 1099 instruction_poke(struct_processus *s_eta
|
} |
} |
} |
} |
|
|
if (sem_wait( |
while(sem_wait( |
&((*s_etat_processus).semaphore_fork)) != 0) |
&((*s_etat_processus).semaphore_fork)) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
if (errno != EINTR) |
return; |
{ |
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
|
return; |
|
} |
} |
} |
|
|
if (registre_stop == 0) |
if (registre_stop == 0) |