version 1.40, 2011/09/14 17:56:00
|
version 1.41, 2011/09/15 17:51:44
|
Line 181 localisation_courante(struct_processus *
|
Line 181 localisation_courante(struct_processus *
|
|
|
pid_t pid; |
pid_t pid; |
|
|
sigset_t oldset; |
|
sigset_t set; |
|
|
|
struct sigaction action_passee; |
struct sigaction action_passee; |
|
|
unsigned char *tampon; |
unsigned char *tampon; |
Line 234 localisation_courante(struct_processus *
|
Line 231 localisation_courante(struct_processus *
|
return; |
return; |
} |
} |
|
|
sigfillset(&set); |
|
pthread_sigmask(SIG_BLOCK, &set, &oldset); |
|
|
|
verrouillage_threads_concurrents(s_etat_processus); |
verrouillage_threads_concurrents(s_etat_processus); |
pid = fork(); |
pid = fork(); |
deverrouillage_threads_concurrents(s_etat_processus); |
deverrouillage_threads_concurrents(s_etat_processus); |
|
|
pthread_sigmask(SIG_SETMASK, &oldset, NULL); |
|
sigpending(&set); |
|
|
|
if (pid < 0) |
if (pid < 0) |
{ |
{ |
if (close(pipes_entree[0]) != 0) |
if (close(pipes_entree[0]) != 0) |