--- rpl/src/interruptions.c 2014/06/05 20:51:54 1.146 +++ rpl/src/interruptions.c 2014/07/15 14:12:38 1.147 @@ -99,7 +99,6 @@ thread_surveillance_signaux(void *argume if ((*s_queue_signaux).requete_arret == d_vrai) { -uprintf("Fin du thread\n"); sem_post(semaphore_arret_signalisation); sem_post(semaphore_signalisation); @@ -189,7 +188,6 @@ uprintf("Fin du thread\n"); } } -uprintf("Zouh...\n"); pthread_exit(NULL); } @@ -1470,21 +1468,6 @@ verrouillage_gestionnaire_signaux(struct return; } -# ifndef SEMAPHORES_NOMMES - if (sem_post(&semaphore_gestionnaires_signaux) == -1) -# else - if (sem_post(semaphore_gestionnaires_signaux) == -1) -# endif - { -# ifndef SEMAPHORES_NOMMES - sem_wait(&((*s_etat_processus).semaphore_fork)); -# else - sem_wait((*s_etat_processus).semaphore_fork); -# endif - BUG(1, uprintf("Lock error !\n")); - return; - } - return; } @@ -3264,10 +3247,7 @@ destruction_queue_signaux(struct_process // Incrémenter le sémaphore pour être sûr de le débloquer. sem_post(semaphore_signalisation); - uprintf("Requête arrêt\n"); - int ios; - ios = pthread_join((*s_queue_signaux).thread_signaux, NULL); - if (ios) perror("pthread_join"); + pthread_join((*s_queue_signaux).thread_signaux, NULL); # ifdef IPCS_SYSV // SystemV # ifndef OS2