version 1.9, 2010/04/21 13:45:50
|
version 1.11, 2010/04/29 07:30:58
|
Line 1957 interruption5(int signal, siginfo_t *sig
|
Line 1957 interruption5(int signal, siginfo_t *sig
|
return; |
return; |
} |
} |
|
|
|
if (signal == SIGFABORT) |
|
{ |
|
(*s_etat_processus).arret_depuis_abort = -1; |
|
} |
|
|
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
{ |
{ |
printf("[%d] SIGFSTOP (thread %llu)\n", (int) getpid(), |
if (signal == SIGFSTOP) |
(unsigned long long) pthread_self()); |
{ |
fflush(stdout); |
printf("[%d] SIGFSTOP (thread %llu)\n", (int) getpid(), |
|
(unsigned long long) pthread_self()); |
|
fflush(stdout); |
|
} |
|
else |
|
{ |
|
printf("[%d] SIGFABORT (thread %llu)\n", (int) getpid(), |
|
(unsigned long long) pthread_self()); |
|
fflush(stdout); |
|
} |
} |
} |
|
|
/* |
/* |
Line 1982 interruption5(int signal, siginfo_t *sig
|
Line 1996 interruption5(int signal, siginfo_t *sig
|
} |
} |
else |
else |
{ |
{ |
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) |
|
== NULL) |
|
{ |
|
deverrouillage_gestionnaire_signaux(); |
|
return; |
|
} |
|
|
|
if (signal == SIGFABORT) |
|
{ |
|
(*s_etat_processus).arret_depuis_abort = -1; |
|
} |
|
|
// Envoi d'un signal au thread maître du groupe. |
// Envoi d'un signal au thread maître du groupe. |
|
|
if (recherche_thread_principal(getpid(), &thread) == d_vrai) |
if (recherche_thread_principal(getpid(), &thread) == d_vrai) |
{ |
{ |
pthread_kill(thread, SIGFSTOP); |
pthread_kill(thread, signal); |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
return; |
return; |
} |
} |
Line 2110 interruption9(int signal, siginfo_t *sig
|
Line 2136 interruption9(int signal, siginfo_t *sig
|
fflush(stdout); |
fflush(stdout); |
} |
} |
|
|
pthread_kill((*s_etat_processus).tid_processus_pere, SIGFSTOP); |
pthread_kill((*s_etat_processus).tid_processus_pere, SIGFABORT); |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
return; |
return; |
} |
} |