version 1.61, 2011/08/30 14:19:28
|
version 1.62, 2011/09/01 12:14:56
|
Line 986 liberation_threads(struct_processus *s_e
|
Line 986 liberation_threads(struct_processus *s_e
|
element_courant = element_suivant; |
element_courant = element_suivant; |
} |
} |
|
|
element_courant = (*s_etat_processus).l_base_pile_undo; |
|
while(element_courant != NULL) |
|
{ |
|
element_suivant = (*((struct_liste_chainee *) |
|
element_courant)).suivant; |
|
|
|
pthread_mutex_trylock(&((*(*((struct_liste_chainee *) |
|
element_courant)).donnee).mutex)); |
|
pthread_mutex_unlock(&((*(*((struct_liste_chainee *) |
|
element_courant)).donnee).mutex)); |
|
liberation(s_etat_processus, |
|
(*((struct_liste_chainee *) element_courant)).donnee); |
|
free(element_courant); |
|
|
|
element_courant = element_suivant; |
|
} |
|
|
|
element_courant = (*s_etat_processus).l_base_pile_systeme; |
element_courant = (*s_etat_processus).l_base_pile_systeme; |
while(element_courant != NULL) |
while(element_courant != NULL) |
{ |
{ |
Line 2008 interruption2(SIGHANDLER_ARGS)
|
Line 1991 interruption2(SIGHANDLER_ARGS)
|
void |
void |
interruption3(SIGHANDLER_ARGS) |
interruption3(SIGHANDLER_ARGS) |
{ |
{ |
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
static int compteur = 0; |
static int compteur = 0; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
Line 2076 interruption3(SIGHANDLER_ARGS)
|
Line 2051 interruption3(SIGHANDLER_ARGS)
|
void |
void |
interruption4(SIGHANDLER_ARGS) |
interruption4(SIGHANDLER_ARGS) |
{ |
{ |
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
Line 2184 interruption5(SIGHANDLER_ARGS)
|
Line 2151 interruption5(SIGHANDLER_ARGS)
|
void |
void |
interruption6(SIGHANDLER_ARGS) |
interruption6(SIGHANDLER_ARGS) |
{ |
{ |
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
Line 2216 interruption6(SIGHANDLER_ARGS)
|
Line 2175 interruption6(SIGHANDLER_ARGS)
|
void |
void |
interruption7(SIGHANDLER_ARGS) |
interruption7(SIGHANDLER_ARGS) |
{ |
{ |
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
Line 2303 interruption8(SIGHANDLER_ARGS)
|
Line 2254 interruption8(SIGHANDLER_ARGS)
|
void |
void |
interruption9(SIGHANDLER_ARGS) |
interruption9(SIGHANDLER_ARGS) |
{ |
{ |
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |
Line 2348 interruption10(SIGHANDLER_ARGS)
|
Line 2291 interruption10(SIGHANDLER_ARGS)
|
{ |
{ |
file *fichier; |
file *fichier; |
|
|
pid_t pid; |
|
|
|
struct_processus *s_etat_processus; |
struct_processus *s_etat_processus; |
|
|
unsigned char nom[8 + 64 + 1]; |
unsigned char nom[8 + 64 + 1]; |
|
|
verrouillage_gestionnaire_signaux(); |
verrouillage_gestionnaire_signaux(); |
|
|
# ifdef _BROKEN_SIGINFO |
|
pid = origine_signal(signal); |
|
# else |
|
pid = (*siginfo).si_pid; |
|
# endif |
|
|
|
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) == NULL) |
{ |
{ |
deverrouillage_gestionnaire_signaux(); |
deverrouillage_gestionnaire_signaux(); |